mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
fallback to the previous scheme for file repositories.
This improves compatibility with hg-git.
This commit is contained in:
parent
7a73a82ce0
commit
a9a41202ed
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user