convert: avoid querying log of foreign svn branches
authorPatrick Mezard <pmezard@gmail.com>
Sun, 16 Mar 2008 00:35:14 +0100
changeset 6281 3e5f99b13998
parent 6280 9db24a36d182
child 6282 709652cd7bff
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.
hgext/convert/subversion.py
--- 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: