##// END OF EJS Templates
revlog: pass a transaction object to `rewrite_sidedata`...
marmoute -
r47990:2bd4b521 default
parent child Browse files
Show More
@@ -449,11 +449,13 b' class cg1unpacker(object):'
449
449
450 if sidedata_helpers:
450 if sidedata_helpers:
451 if revlog_constants.KIND_CHANGELOG in sidedata_helpers[1]:
451 if revlog_constants.KIND_CHANGELOG in sidedata_helpers[1]:
452 cl.rewrite_sidedata(sidedata_helpers, clstart, clend - 1)
452 cl.rewrite_sidedata(
453 trp, sidedata_helpers, clstart, clend - 1
454 )
453 for mf, (startrev, endrev) in touched_manifests.items():
455 for mf, (startrev, endrev) in touched_manifests.items():
454 mf.rewrite_sidedata(sidedata_helpers, startrev, endrev)
456 mf.rewrite_sidedata(trp, sidedata_helpers, startrev, endrev)
455 for fl, (startrev, endrev) in touched_filelogs.items():
457 for fl, (startrev, endrev) in touched_filelogs.items():
456 fl.rewrite_sidedata(sidedata_helpers, startrev, endrev)
458 fl.rewrite_sidedata(trp, sidedata_helpers, startrev, endrev)
457
459
458 # making sure the value exists
460 # making sure the value exists
459 tr.changes.setdefault(b'changegroup-count-changesets', 0)
461 tr.changes.setdefault(b'changegroup-count-changesets', 0)
@@ -3120,7 +3120,7 b' class revlog(object):'
3120
3120
3121 return d
3121 return d
3122
3122
3123 def rewrite_sidedata(self, helpers, startrev, endrev):
3123 def rewrite_sidedata(self, transaction, helpers, startrev, endrev):
3124 if not self.hassidedata:
3124 if not self.hassidedata:
3125 return
3125 return
3126 # inline are not yet supported because they suffer from an issue when
3126 # inline are not yet supported because they suffer from an issue when
General Comments 0
You need to be logged in to leave comments. Login now