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

contrib/hg: bring up to date with mercurial version

contributed by Sune Foldager

Changeset f962be4be146

Parent 5e7f238903ff

by Steve Borho

Changes to one file · Browse files at f962be4be146 Showing diff from parent 5e7f238903ff Diff from another changeset...

Change 1 of 1 Show Entire File contrib/​hg Stacked
 
8
9
10
11
 
 
 
 
 
 
 
 
12
 
 
13
 
 
 
 
14
 
8
9
10
 
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
@@ -8,7 +8,20 @@
 # of the GNU General Public License, incorporated herein by reference.    # enable importing on demand to reduce startup time -from mercurial import demandimport; demandimport.enable() +try: + from mercurial import demandimport; demandimport.enable() +except ImportError: + import sys + sys.stderr.write("abort: couldn't find mercurial libraries in [%s]\n" % + ' '.join(sys.path)) + sys.stderr.write("(check your install and PYTHONPATH)\n") + sys.exit(-1)   +import sys +import mercurial.util  import mercurial.dispatch + +for fp in (sys.stdin, sys.stdout, sys.stderr): + mercurial.util.set_binary(fp) +  mercurial.dispatch.run()