[Updated] D9881: revlog: change addrawrevision to return the revision
joerg.sonnenberger (Joerg Sonnenberger)
phabricator at mercurial-scm.org
Thu Feb 11 16:38:51 UTC 2021
Closed by commit rHG0a2112f0109b: revlog: change addrawrevision to return the revision (authored by joerg.sonnenberger).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9881?vs=25288&id=25565
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9881/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9881
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
@@ -2112,7 +2112,7 @@
if validatehash:
self.checkhash(rawtext, node, p1=p1, p2=p2)
- return self.addrawrevision(
+ rev = self.addrawrevision(
rawtext,
transaction,
link,
@@ -2123,6 +2123,7 @@
cachedelta=cachedelta,
deltacomputer=deltacomputer,
)
+ return node
def addrawrevision(
self,
@@ -2145,7 +2146,7 @@
dfh = self._datafp(b"a+")
ifh = self._indexfp(b"a+")
try:
- self._addrevision(
+ return self._addrevision(
node,
rawtext,
transaction,
@@ -2158,7 +2159,6 @@
dfh,
deltacomputer=deltacomputer,
)
- return node
finally:
if dfh:
dfh.close()
To: joerg.sonnenberger, indygreg, #hg-reviewers, Alphare, pulkit
Cc: pulkit, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mercurial-scm.org/pipermail/mercurial-patches/attachments/20210211/2ccb5d0e/attachment.html>
More information about the Mercurial-patches
mailing list