##// END OF EJS Templates
bundlerepo: factor out code for instantiating a bundle repository...
Gregory Szorc -
r39639:a8d2faec default
parent child Browse files
Show More
@@ -479,7 +479,12 def instance(ui, path, create, intents=N
479 repopath, bundlename = s
479 repopath, bundlename = s
480 else:
480 else:
481 repopath, bundlename = parentpath, path
481 repopath, bundlename = parentpath, path
482 return bundlerepository(ui, repopath, bundlename)
482
483 return makebundlerepository(ui, repopath, bundlename)
484
485 def makebundlerepository(ui, repopath, bundlepath):
486 """Make a bundle repository object based on repo and bundle paths."""
487 return bundlerepository(ui, repopath, bundlepath)
483
488
484 class bundletransactionmanager(object):
489 class bundletransactionmanager(object):
485 def transaction(self):
490 def transaction(self):
@@ -588,8 +593,10 def getremotechanges(ui, repo, peer, onl
588 bundle = None
593 bundle = None
589 if not localrepo:
594 if not localrepo:
590 # use the created uncompressed bundlerepo
595 # use the created uncompressed bundlerepo
591 localrepo = bundlerepo = bundlerepository(repo.baseui, repo.root,
596 localrepo = bundlerepo = makebundlerepository(repo. baseui,
597 repo.root,
592 fname)
598 fname)
599
593 # this repo contains local and peer now, so filter out local again
600 # this repo contains local and peer now, so filter out local again
594 common = repo.heads()
601 common = repo.heads()
595 if localrepo:
602 if localrepo:
General Comments 0
You need to be logged in to leave comments. Login now