Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 1.9, 1.9.1, and 1.9.2

thg: enable demandimport

It must be disabled when tortoisehg.hgqt is first referenced,
else the hacks in __init__.py are bypassed and the icon resource
will not be built.

Changeset decb52eebbb3

Parent feb6fa028eb2

by Steve Borho

Changes to one file · Browse files at decb52eebbb3 Showing diff from parent feb6fa028eb2 Diff from another changeset...

Change 1 of 1 Show Entire File thg Stacked
 
23
24
25
 
 
 
 
26
27
28
29
30
 
31
 
32
33
34
 
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@@ -23,12 +23,18 @@
  if os.path.isdir(testpath) and hgpath not in sys.path:   sys.path.insert(0, hgpath)   +from mercurial import demandimport +demandimport.ignore.append('win32com.shell') +demandimport.ignore.append('tortoisehg.util.config') +demandimport.enable()  from mercurial import ui, util  import cStringIO  import traceback    try: + demandimport.disable()   import tortoisehg.hgqt.run + demandimport.enable()  except ImportError, e:   sys.stderr.write(str(e)+'\n')   sys.stderr.write("abort: couldn't find tortoisehg libraries in [%s]\n" %