Skip to content
Snippets Groups Projects
Commit 68286300 authored by Abderrahim Kitouni's avatar Abderrahim Kitouni
Browse files

Make it possible to clone/pull from bundle repositories

parent c5c63783
No related branches found
No related tags found
No related merge requests found
......@@ -16,4 +16,6 @@
from mercurial import commands
from mercurial import hg
from mercurial import util
from mercurial import bundlerepo
from mercurial.i18n import _
......@@ -19,4 +21,5 @@
from mercurial.i18n import _
import os
from git_handler import GitHandler
# support for `hg clone git://github.com/defunkt/facebox.git`
......@@ -24,7 +27,12 @@
import gitrepo, hgrepo
hg.schemes['git'] = gitrepo
hg.schemes['git+ssh'] = gitrepo
hg.schemes['file'] = hgrepo
def _local(path):
return (os.path.isfile(util.drop_scheme('file', path)) and
bundlerepo or hgrepo)
hg.schemes['file'] = _local
def gclone(ui, git_url, hg_repo_path=None):
# determine new repo name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment