hgext/share.py
changeset 23625 3a8a85469ee8
parent 23614 cd79fb4d75fd
child 23626 012a7b482d68
equal deleted inserted replaced
23624:861ddedfb402 23625:3a8a85469ee8
    94     srcrepo = None
    94     srcrepo = None
    95     try:
    95     try:
    96         # strip because some tools write with newline after
    96         # strip because some tools write with newline after
    97         sharedpath = repo.vfs.read('sharedpath').strip()
    97         sharedpath = repo.vfs.read('sharedpath').strip()
    98         # the sharedpath always ends in the .hg; we want the path to the repo
    98         # the sharedpath always ends in the .hg; we want the path to the repo
    99         source = sharedpath.rsplit('/.hg', 1)[0]
    99         source = repo.vfs.split(sharedpath)[0]
   100         srcurl, branches = parseurl(source)
   100         srcurl, branches = parseurl(source)
   101         srcrepo = repository(repo.ui, srcurl)
   101         srcrepo = repository(repo.ui, srcurl)
   102     except IOError, inst:
   102     except IOError, inst:
   103         if inst.errno != errno.ENOENT:
   103         if inst.errno != errno.ENOENT:
   104             raise
   104             raise