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

nautilus: enable demandimport

Changeset a811be431fb2

Parent a13e3aba2ab2

by Simon Heimberg

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

 
11
12
13
14
15
16
17
18
19
20
21
22
 
23
24
25
26
27
28
 
 
 
 
 
 
 
 
 
29
30
31
 
11
12
13
 
14
 
 
 
 
15
16
 
17
18
19
20
21
22
 
23
24
25
26
27
28
29
30
31
32
33
34
@@ -11,21 +11,24 @@
   import gtk  import gobject -import os  import nautilus -import subprocess -import sys -import tempfile -import urllib    try: - from mercurial import hg, ui, match, util + from mercurial import demandimport  except ImportError:   # workaround to use user's local python libs   userlib = os.path.expanduser('~/lib/python')   if os.path.exists(userlib) and userlib not in sys.path:   sys.path.append(userlib) - from mercurial import hg, ui, match, util + from mercurial import demandimport +demandimport.enable() + +import os +import subprocess +import sys +import urllib + +from mercurial import hg, ui, match, util  try:   from mercurial.error import RepoError  except ImportError: