comparison mercurial/bundlerepo.py @ 35050:d2458ba810c5

bundlerepo: add docstring for bundlerepository class Differential Revision: https://phab.mercurial-scm.org/D1375
author Gregory Szorc <gregory.szorc@gmail.com>
date Sat, 11 Nov 2017 18:09:16 -0800
parents 4696938d40f9
children 4f04c9207a76
comparison
equal deleted inserted replaced
35049:4696938d40f9 35050:d2458ba810c5
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: