fallback to the previous scheme for file repositories.

This improves compatibility with hg-git.
This commit is contained in:
Dan Villiom Podlaski Christiansen 2009-12-13 17:15:01 +01:00
parent 7a73a82ce0
commit a9a41202ed

View File

@ -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,