hgext/convert/subversion.py
changeset 6214 0f76c7dc8484
parent 6210 942287cb1f57
child 6281 3e5f99b13998
equal deleted inserted replaced
6213:5c5e45766224 6214:0f76c7dc8484
   791                             firstcset.parents.append(latest)
   791                             firstcset.parents.append(latest)
   792                 except util.Abort:
   792                 except util.Abort:
   793                     pass
   793                     pass
   794         except SubversionException, (inst, num):
   794         except SubversionException, (inst, num):
   795             if num == svn.core.SVN_ERR_FS_NO_SUCH_REVISION:
   795             if num == svn.core.SVN_ERR_FS_NO_SUCH_REVISION:
   796                 raise NoSuchRevision(branch=self,
   796                 raise util.Abort('svn: branch has no revision %s' % to_revnum)
   797                     revision="Revision number %d" % to_revnum)
       
   798             raise
   797             raise
   799 
   798 
   800     def _getfile(self, file, rev):
   799     def _getfile(self, file, rev):
   801         io = StringIO()
   800         io = StringIO()
   802         # TODO: ra.get_file transmits the whole file instead of diffs.
   801         # TODO: ra.get_file transmits the whole file instead of diffs.