Mercurial > hg
comparison mercurial/revlog.py @ 47216:2bd4b5218918
revlog: pass a transaction object to `rewrite_sidedata`
The `_writing` context need one, so we update the function signature before considering using `_writing` in rewrite_sidedata.
Differential Revision: https://phab.mercurial-scm.org/D10607
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 03 May 2021 12:28:05 +0200 |
parents | 042388bba644 |
children | 8f6165c90163 |
comparison
equal
deleted
inserted
replaced
47215:042388bba644 | 47216:2bd4b5218918 |
---|---|
3118 self.opener.stat(path).st_size for path in self.files() | 3118 self.opener.stat(path).st_size for path in self.files() |
3119 ) | 3119 ) |
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 |
3127 # rewriting them (since it's not an append-only operation). | 3127 # rewriting them (since it's not an append-only operation). |
3128 # See issue6485. | 3128 # See issue6485. |