Show More
@@ -20,14 +20,16 import localrepo, changelog, manifest, f | |||
|
20 | 20 | class bundlerevlog(revlog.revlog): |
|
21 | 21 | def __init__(self, opener, indexfile, bundle, linkmapper): |
|
22 | 22 | # How it works: |
|
23 |
# |
|
|
24 |
# the |
|
|
23 | # To retrieve a revision, we need to know the offset of the revision in | |
|
24 | # the bundle (an unbundle object). We store this offset in the index | |
|
25 | # (start). | |
|
25 | 26 | # |
|
26 | # We store this offset in the index (start), to differentiate a | |
|
27 | # rev in the bundle and from a rev in the revlog, we check | |
|
28 | # len(index[r]). If the tuple is bigger than 7, it is a bundle | |
|
29 | # (it is bigger since we store the node to which the delta is) | |
|
27 | # basemap is indexed with revisions coming from the bundle, and it | |
|
28 | # maps to the corresponding node that is the base of the corresponding | |
|
29 | # delta. | |
|
30 | 30 | # |
|
31 | # To differentiate a rev in the bundle from a rev in the revlog, we | |
|
32 | # check revision against basemap. | |
|
31 | 33 | opener = scmutil.readonlyvfs(opener) |
|
32 | 34 | revlog.revlog.__init__(self, opener, indexfile) |
|
33 | 35 | self.bundle = bundle |
@@ -385,4 +387,3 def getremotechanges(ui, repo, other, on | |||
|
385 | 387 | other.close() |
|
386 | 388 | |
|
387 | 389 | return (localrepo, csets, cleanup) |
|
388 |
General Comments 0
You need to be logged in to leave comments.
Login now