Commits

Nicolas Dumazet  committed fd74231

subversionexception

  • Participants
  • Parent commits 244032b

Comments (0)

Files changed (2)

+subversionexception
 graphlimit
 symlink-basic
 dirstate-stat

File subversionexception

+# HG changeset patch
+# User Nicolas Dumazet <nicdumz.commits@gmail.com>
+# Date 1260751077 -32400
+
+convert: subversion: improved error message when client is too old (issue1945)
+
+diff --git a/hgext/convert/subversion.py b/hgext/convert/subversion.py
+--- a/hgext/convert/subversion.py
++++ b/hgext/convert/subversion.py
+@@ -250,9 +250,13 @@
+             self.commits = {}
+             self.paths = {}
+             self.uuid = svn.ra.get_uuid(self.ra)
+-        except SubversionException:
+-            ui.traceback()
+-            raise NoRepo("%s does not look like a Subversion repo" % self.url)
++        except SubversionException, err:
++            if err.apr_err == svn.core.SVN_ERR_FS_UNSUPPORTED_FORMAT:
++                message = err.message + "foooooooooo"
++            else:
++                ui.traceback()
++                message = "%s does not look like a Subversion repo" % self.url)
++            raise NoRepo(message)
+ 
+         if rev:
+             try: