equal
deleted
inserted
replaced
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 |