hgext/convert/subversion.py
changeset 9587 d80a251baf9a
parent 9521 e3ce0c30798b
child 9598 a981ddb16b80
equal deleted inserted replaced
9586:d08099e74b81 9587:d80a251baf9a
   113     def __init__(self, stdout):
   113     def __init__(self, stdout):
   114         self._stdout = stdout
   114         self._stdout = stdout
   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:
   122                 if entry is None:
   126                 if entry is None:
   123                     break
   127                     break