##// END OF EJS Templates
convert/svn: better error when hg cannot call itself (issue1838)
Patrick Mezard -
r9587:d80a251b default
parent child Browse files
Show More
@@ -115,7 +115,11 b' class logstream(object):'
115
115
116 def __iter__(self):
116 def __iter__(self):
117 while True:
117 while True:
118 entry = pickle.load(self._stdout)
118 try:
119 entry = pickle.load(self._stdout)
120 except EOFError:
121 raise util.Abort(_('Mercurial failed to run itself, check'
122 ' hg executable is in PATH'))
119 try:
123 try:
120 orig_paths, revnum, author, date, message = entry
124 orig_paths, revnum, author, date, message = entry
121 except:
125 except:
@@ -28,3 +28,7 b" hg glog --template 'branch={branches} {r"
28 hg branches | sed 's/:.*/:/'
28 hg branches | sed 's/:.*/:/'
29 hg tags -q
29 hg tags -q
30 cd ..
30 cd ..
31
32 echo '% test hg failing to call itself'
33 HG=foobar hg convert svn-repo B-hg 2>&1 | grep -v foobar
34
@@ -48,3 +48,6 b' default 10:'
48 old 9:
48 old 9:
49 old2 8:
49 old2 8:
50 tip
50 tip
51 % test hg failing to call itself
52 initializing destination B-hg repository
53 abort: Mercurial failed to run itself, check hg executable is in PATH
General Comments 0
You need to be logged in to leave comments. Login now