changeset 6281:3e5f99b13998

convert: avoid querying log of foreign svn branches Server configuration may prevent access to other branches, so don't even try to get them, instead of ignoring them afterwards.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 16 Mar 2008 00:35:14 +0100
parents 9db24a36d182
children 709652cd7bff
files hgext/convert/subversion.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/subversion.py	Sun Mar 16 00:35:12 2008 +0100
+++ b/hgext/convert/subversion.py	Sun Mar 16 00:35:14 2008 +0100
@@ -417,6 +417,11 @@
         a change being reported. Return None if computed module does not
         belong to rootmodule subtree.
         """
+        if not path.startswith(self.rootmodule):
+            # Requests on foreign branches may be forbidden at server level
+            self.ui.debug(_('ignoring foreign branch %r\n') % path)
+            return None
+
         if not stop:
             stop = svn.ra.get_latest_revnum(self.ra)
         try: