changeset 46560 | f7b61ad3c64a |
parent 45811 | a5206e71c536 |
child 46714 | 6f4a481f182a |
--- a/mercurial/filelog.py Wed Jan 27 00:55:20 2021 +0100 +++ b/mercurial/filelog.py Wed Jan 27 01:43:17 2021 +0100 @@ -176,7 +176,8 @@ def add(self, text, meta, transaction, link, p1=None, p2=None): if meta or text.startswith(b'\1\n'): text = storageutil.packmeta(meta, text) - return self.addrevision(text, transaction, link, p1, p2) + rev = self.addrevision(text, transaction, link, p1, p2) + return self.node(rev) def renamed(self, node): return storageutil.filerevisioncopied(self, node)