[Commented On] D10543: revlog: adjust rewrite_sidedata code to not delete existing revlog content
baymax (Baymax, Your Personal Patch-care Companion)
phabricator at mercurial-scm.org
Mon May 3 11:37:17 UTC 2021
baymax added a comment.
baymax updated this revision to Diff 27336.
✅ refresh by Heptapod after a successful CI run (🐙 💚)
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D10543?vs=27312&id=27336
BRANCH
default
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D10543/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D10543
AFFECTED FILES
mercurial/revlog.py
CHANGE DETAILS
diff --git a/mercurial/revlog.py b/mercurial/revlog.py
--- a/mercurial/revlog.py
+++ b/mercurial/revlog.py
@@ -3118,7 +3118,7 @@
current_offset += len(serialized_sidedata)
# rewrite the new index entries
- with self._indexfp(b'w+') as fp:
+ with self._indexfp(b'r+') as fp:
fp.seek(startrev * self.index.entry_size)
for i, e in enumerate(new_entries):
rev = startrev + i
To: marmoute, indygreg, #hg-reviewers
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210503/87a9738c/attachment-0002.html>
More information about the Mercurial-patches
mailing list