equal
deleted
inserted
replaced
254 for chunk in iter(lambda: bundle.deltachunk(None), {}): |
254 for chunk in iter(lambda: bundle.deltachunk(None), {}): |
255 pass |
255 pass |
256 return bundlefilespos |
256 return bundlefilespos |
257 |
257 |
258 class bundlerepository(localrepo.localrepository): |
258 class bundlerepository(localrepo.localrepository): |
|
259 """A repository instance that is a union of a local repo and a bundle. |
|
260 |
|
261 Instances represent a read-only repository composed of a local repository |
|
262 with the contents of a bundle file applied. The repository instance is |
|
263 conceptually similar to the state of a repository after an |
|
264 ``hg unbundle`` operation. However, the contents of the bundle are never |
|
265 applied to the actual base repository. |
|
266 """ |
259 def __init__(self, ui, repopath, bundlepath): |
267 def __init__(self, ui, repopath, bundlepath): |
260 self._tempparent = None |
268 self._tempparent = None |
261 try: |
269 try: |
262 localrepo.localrepository.__init__(self, ui, repopath) |
270 localrepo.localrepository.__init__(self, ui, repopath) |
263 except error.RepoError: |
271 except error.RepoError: |