Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgtk: load extensions at startup

Fixes #188

Changeset 950f8132b2a4

Parent 3ec55e54cf75

by Steve Borho

Changes to one file · Browse files at 950f8132b2a4 Showing diff from parent 3ec55e54cf75 Diff from another changeset...

Change 1 of 2 Show Entire File hggtk/​hgtk.py Stacked
 
13
14
15
16
 
17
18
19
 
151
152
153
 
 
 
 
 
 
 
 
 
 
154
155
156
 
13
14
15
 
16
17
18
19
 
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
@@ -13,7 +13,7 @@
   from mercurial.i18n import _  import mercurial.ui as _ui -from mercurial import hg, util, fancyopts, cmdutil +from mercurial import hg, util, fancyopts, cmdutil, extensions  import hglib  import gtk  import gobject @@ -151,6 +151,16 @@
  if options['repository']:   path = lui.expandpath(options['repository'])   + _loaded = {} + extensions.loadall(ui) + for name, module in extensions.extensions(): + if name in _loaded: + continue + extsetup = getattr(module, 'extsetup', None) + if extsetup: + extsetup() + _loaded[name] = 1 +   if cmd not in nonrepo_commands.split():   try:   repo = hg.repository(ui, path=path)