##// END OF EJS Templates
revlog: adapt the `reading` check for `bundlerepo`...
marmoute -
r51905:3470a39f default
parent child Browse files
Show More
@@ -12,6 +12,7 b' were part of the actual repository.'
12 """
12 """
13
13
14
14
15 import contextlib
15 import os
16 import os
16 import shutil
17 import shutil
17
18
@@ -108,6 +109,14 b' class bundlerevlog(revlog.revlog):'
108 self.bundlerevs.add(n)
109 self.bundlerevs.add(n)
109 n += 1
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 def _chunk(self, rev, df=None):
120 def _chunk(self, rev, df=None):
112 # Warning: in case of bundle, the diff is against what we stored as
121 # Warning: in case of bundle, the diff is against what we stored as
113 # delta base, not against rev - 1
122 # delta base, not against rev - 1
General Comments 0
You need to be logged in to leave comments. Login now