mercurial/hg.py
changeset 17192 1ac628cd7113
parent 17191 5884812686f7
child 17194 32a6a33b9a35
equal deleted inserted replaced
17191:5884812686f7 17192:1ac628cd7113
     7 # GNU General Public License version 2 or any later version.
     7 # GNU General Public License version 2 or any later version.
     8 
     8 
     9 from i18n import _
     9 from i18n import _
    10 from lock import release
    10 from lock import release
    11 from node import hex, nullid
    11 from node import hex, nullid
    12 import localrepo, bundlerepo, httprepo, sshrepo, statichttprepo, bookmarks
    12 import localrepo, bundlerepo, httppeer, sshpeer, statichttprepo, bookmarks
    13 import lock, util, extensions, error, node, scmutil
    13 import lock, util, extensions, error, node, scmutil
    14 import cmdutil, discovery
    14 import cmdutil, discovery
    15 import merge as mergemod
    15 import merge as mergemod
    16 import verify as verifymod
    16 import verify as verifymod
    17 import errno, os, shutil
    17 import errno, os, shutil
    63     return str(u), (branch, branches or [])
    63     return str(u), (branch, branches or [])
    64 
    64 
    65 schemes = {
    65 schemes = {
    66     'bundle': bundlerepo,
    66     'bundle': bundlerepo,
    67     'file': _local,
    67     'file': _local,
    68     'http': httprepo,
    68     'http': httppeer,
    69     'https': httprepo,
    69     'https': httppeer,
    70     'ssh': sshrepo,
    70     'ssh': sshpeer,
    71     'static-http': statichttprepo,
    71     'static-http': statichttprepo,
    72 }
    72 }
    73 
    73 
    74 def _peerlookup(path):
    74 def _peerlookup(path):
    75     u = util.url(path)
    75     u = util.url(path)