Show More
@@ -157,10 +157,15 b' def _getsrcrepo(repo):' | |||||
157 | if repo.sharedpath == repo.path: |
|
157 | if repo.sharedpath == repo.path: | |
158 | return None |
|
158 | return None | |
159 |
|
159 | |||
|
160 | if util.safehasattr(repo, 'srcrepo') and repo.srcrepo: | |||
|
161 | return repo.srcrepo | |||
|
162 | ||||
160 | # the sharedpath always ends in the .hg; we want the path to the repo |
|
163 | # the sharedpath always ends in the .hg; we want the path to the repo | |
161 | source = repo.vfs.split(repo.sharedpath)[0] |
|
164 | source = repo.vfs.split(repo.sharedpath)[0] | |
162 | srcurl, branches = parseurl(source) |
|
165 | srcurl, branches = parseurl(source) | |
163 |
|
|
166 | srcrepo = repository(repo.ui, srcurl) | |
|
167 | repo.srcrepo = srcrepo | |||
|
168 | return srcrepo | |||
164 |
|
169 | |||
165 | def getbkfile(orig, repo): |
|
170 | def getbkfile(orig, repo): | |
166 | if _hassharedbookmarks(repo): |
|
171 | if _hassharedbookmarks(repo): |
General Comments 0
You need to be logged in to leave comments.
Login now