[Updated] D11269: filelog: open the writing context a bit earlier in `addgroup`
marmoute (Pierre-Yves David)
phabricator at mercurial-scm.org
Tue Aug 10 13:33:03 UTC 2021
Closed by commit rHG436932c2cfaa: filelog: open the writing context a bit earlier in `addgroup` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11269?vs=29860&id=29881
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11269/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11269
AFFECTED FILES
mercurial/filelog.py
CHANGE DETAILS
diff --git a/mercurial/filelog.py b/mercurial/filelog.py
--- a/mercurial/filelog.py
+++ b/mercurial/filelog.py
@@ -157,13 +157,14 @@
)
)
- return self._revlog.addgroup(
- deltas,
- linkmapper,
- transaction,
- addrevisioncb=addrevisioncb,
- duplicaterevisioncb=duplicaterevisioncb,
- )
+ with self._revlog._writing(transaction):
+ return self._revlog.addgroup(
+ deltas,
+ linkmapper,
+ transaction,
+ addrevisioncb=addrevisioncb,
+ duplicaterevisioncb=duplicaterevisioncb,
+ )
def getstrippoint(self, minlink):
return self._revlog.getstrippoint(minlink)
To: marmoute, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210810/5cbef3ce/attachment-0002.html>
More information about the Mercurial-patches
mailing list