mercurial/sshrepo.py
changeset 14363 82f3b0f3f0a5
parent 14076 924c82157d46
child 14494 1ffeeb91c55d
equal deleted inserted replaced
14362:8c740a850ad7 14363:82f3b0f3f0a5
    17     def __del__(self):
    17     def __del__(self):
    18         if self.repo:
    18         if self.repo:
    19             self.release()
    19             self.release()
    20 
    20 
    21 class sshrepository(wireproto.wirerepository):
    21 class sshrepository(wireproto.wirerepository):
    22     def __init__(self, ui, path, create=0):
    22     def __init__(self, ui, path, create=False):
    23         self._url = path
    23         self._url = path
    24         self.ui = ui
    24         self.ui = ui
    25 
    25 
    26         u = util.url(path, parsequery=False, parsefragment=False)
    26         u = util.url(path, parsequery=False, parsefragment=False)
    27         if u.scheme != 'ssh' or not u.host or u.path is None:
    27         if u.scheme != 'ssh' or not u.host or u.path is None: