mercurial/dispatch.py
changeset 33499 0407a51b9d8c
parent 33065 ef46d432e2e4
child 33618 cc047a733f69
equal deleted inserted replaced
33498:b7a75b9a3386 33499:0407a51b9d8c
   914     # 'make local' copy of hg (where the version number can be out
   914     # 'make local' copy of hg (where the version number can be out
   915     # of date) will be clueful enough to notice the implausible
   915     # of date) will be clueful enough to notice the implausible
   916     # version number and try updating.
   916     # version number and try updating.
   917     ct = util.versiontuple(n=2)
   917     ct = util.versiontuple(n=2)
   918     worst = None, ct, ''
   918     worst = None, ct, ''
   919     if ui.config('ui', 'supportcontact', None) is None:
   919     if ui.config('ui', 'supportcontact') is None:
   920         for name, mod in extensions.extensions():
   920         for name, mod in extensions.extensions():
   921             testedwith = getattr(mod, 'testedwith', '')
   921             testedwith = getattr(mod, 'testedwith', '')
   922             if pycompat.ispy3 and isinstance(testedwith, str):
   922             if pycompat.ispy3 and isinstance(testedwith, str):
   923                 testedwith = testedwith.encode(u'utf-8')
   923                 testedwith = testedwith.encode(u'utf-8')
   924             report = getattr(mod, 'buglink', _('the extension author.'))
   924             report = getattr(mod, 'buglink', _('the extension author.'))
   948                      '** which supports versions %s of Mercurial.\n'
   948                      '** which supports versions %s of Mercurial.\n'
   949                      '** Please disable %s and try your action again.\n'
   949                      '** Please disable %s and try your action again.\n'
   950                      '** If that fixes the bug please report it to %s\n')
   950                      '** If that fixes the bug please report it to %s\n')
   951                    % (name, testedwith, name, report))
   951                    % (name, testedwith, name, report))
   952     else:
   952     else:
   953         bugtracker = ui.config('ui', 'supportcontact', None)
   953         bugtracker = ui.config('ui', 'supportcontact')
   954         if bugtracker is None:
   954         if bugtracker is None:
   955             bugtracker = _("https://mercurial-scm.org/wiki/BugTracker")
   955             bugtracker = _("https://mercurial-scm.org/wiki/BugTracker")
   956         warning = (_("** unknown exception encountered, "
   956         warning = (_("** unknown exception encountered, "
   957                      "please report by visiting\n** ") + bugtracker + '\n')
   957                      "please report by visiting\n** ") + bugtracker + '\n')
   958     if pycompat.ispy3:
   958     if pycompat.ispy3: