Commits

Henrik Stuart  committed 9636a86

hgtk: support --config as global option

  • Participants
  • Parent commits 620025e
  • Branches hgtk-default

Comments (0)

Files changed (1)

File tortoisehg/hgtk/hgtk.py

 
 import mercurial.ui as _ui
 from mercurial import hg, util, fancyopts, cmdutil, extensions, error, scmutil
+from mercurial import dispatch as hgdispatch
 
 from tortoisehg.util.i18n import agettext as _
 from tortoisehg.util import hglib, paths, shlib, i18n
             u.setconfig('ui', 'traceback', 'on')
         if '--debugger' in args:
             pdb.set_trace()
+        hgdispatch._parseconfig(u, hgdispatch._earlygetopt(['--config'], args))
         return _runcatch(u, args)
     except SystemExit:
         pass
     ('', 'nofork', None, _('do not fork GUI process')),
     ('', 'fork', None, _('always fork GUI process')),
     ('', 'listfile', '', _('read file list from file')),
+    ('', 'config', [], _('set/override config option (use "section.name=value")')),
 ]
 
 table = {