Show More
@@ -12,6 +12,7 b' were part of the actual repository.' | |||
|
12 | 12 | """ |
|
13 | 13 | |
|
14 | 14 | |
|
15 | import contextlib | |
|
15 | 16 | import os |
|
16 | 17 | import shutil |
|
17 | 18 | |
@@ -108,6 +109,14 b' class bundlerevlog(revlog.revlog):' | |||
|
108 | 109 | self.bundlerevs.add(n) |
|
109 | 110 | n += 1 |
|
110 | 111 | |
|
112 | @contextlib.contextmanager | |
|
113 | def reading(self): | |
|
114 | if self.repotiprev < 0: | |
|
115 | yield | |
|
116 | else: | |
|
117 | with super().reading() as x: | |
|
118 | yield x | |
|
119 | ||
|
111 | 120 | def _chunk(self, rev, df=None): |
|
112 | 121 | # Warning: in case of bundle, the diff is against what we stored as |
|
113 | 122 | # delta base, not against rev - 1 |
General Comments 0
You need to be logged in to leave comments.
Login now