Comments
Patch
@@ -2150,7 +2150,7 @@
dfh = self._datafp(b"a+")
ifh = self._indexfp(b"a+")
try:
- return self._addrevision(
+ self._addrevision(
node,
rawtext,
transaction,
@@ -2163,6 +2163,7 @@
dfh,
deltacomputer=deltacomputer,
)
+ return node
finally:
if dfh:
dfh.close()
@@ -2334,7 +2335,7 @@
if type(rawtext) == bytes: # only accept immutable objects
self._revisioncache = (node, curr, rawtext)
self._chainbasecache[curr] = deltainfo.chainbase
- return node
+ return curr
def _writeentry(self, transaction, ifh, dfh, entry, data, link, offset):
# Files opened in a+ mode have inconsistent behavior on various