##// END OF EJS Templates
share: don't recreate the source repo each time...
Durham Goode -
r29506:2550604f default
parent child Browse files
Show More
@@ -157,10 +157,15 b' def _getsrcrepo(repo):'
157 157 if repo.sharedpath == repo.path:
158 158 return None
159 159
160 if util.safehasattr(repo, 'srcrepo') and repo.srcrepo:
161 return repo.srcrepo
162
160 163 # the sharedpath always ends in the .hg; we want the path to the repo
161 164 source = repo.vfs.split(repo.sharedpath)[0]
162 165 srcurl, branches = parseurl(source)
163 return repository(repo.ui, srcurl)
166 srcrepo = repository(repo.ui, srcurl)
167 repo.srcrepo = srcrepo
168 return srcrepo
164 169
165 170 def getbkfile(orig, repo):
166 171 if _hassharedbookmarks(repo):
General Comments 0
You need to be logged in to leave comments. Login now