diff hgsubversion/__init__.py @ 505:e508a718779c

fallback to the previous scheme for file repositories. This improves compatibility with hg-git.
author Dan Villiom Podlaski Christiansen <danchr@gmail.com>
date Sun, 13 Dec 2009 17:15:01 +0100
parents bc117ea4c95a
children b5f24dd948af
line wrap: on
line diff
--- a/hgsubversion/__init__.py
+++ b/hgsubversion/__init__.py
@@ -145,12 +145,12 @@ def reposetup(ui, repo):
     if repo.local():
        svnrepo.generate_repo_class(ui, repo)
 
-
+_old_local = hg.schemes['file']
 def _lookup(url):
     if util.islocalrepo(url):
         return svnrepo
     else:
-        return hg._local(url)
+        return _old_local(url)
 
 # install scheme handlers
 hg.schemes.update({ 'file': _lookup, 'http': svnrepo, 'https': svnrepo,