Mercurial > hg
comparison hgext/convert/subversion.py @ 23583:a8edcb9c1199
convert: on svn failure, note libsvn version (issue4043)
We have our own fast-path logic to see if something passes a sniff
test for being a Subversion repository, but it's possible for a user
to svnsync a repo using svn 1.8 and then use svn 1.7 bindings (as in
the bug) to try and convert the repo. If we at least tell the user the
version of libsvn that we used, they might get enough of a hint to
check on their own for format incompatibilities between their
svn{admin,sync} and the libsvn used by hg.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Fri, 12 Dec 2014 15:53:17 -0500 |
parents | 299eaa09b41b |
children | 6ddc86eedc3b |
comparison
equal
deleted
inserted
replaced
23582:7559dc8c4238 | 23583:a8edcb9c1199 |
---|---|
316 self.commits = {} | 316 self.commits = {} |
317 self.paths = {} | 317 self.paths = {} |
318 self.uuid = svn.ra.get_uuid(self.ra) | 318 self.uuid = svn.ra.get_uuid(self.ra) |
319 except SubversionException: | 319 except SubversionException: |
320 ui.traceback() | 320 ui.traceback() |
321 raise NoRepo(_("%s does not look like a Subversion repository") | 321 svnversion = '%d.%d.%d' % (svn.core.SVN_VER_MAJOR, |
322 % self.url) | 322 svn.core.SVN_VER_MINOR, |
323 svn.core.SVN_VER_MICRO) | |
324 raise NoRepo(_("%s does not look like a Subversion repository " | |
325 "to libsvn version %s") | |
326 % (self.url, svnversion)) | |
323 | 327 |
324 if rev: | 328 if rev: |
325 try: | 329 try: |
326 latest = int(rev) | 330 latest = int(rev) |
327 except ValueError: | 331 except ValueError: |