changeset 45089 | d085fcb11c56 |
parent 45088 | 3e40abe0a170 |
child 45091 | 6a5dcd754842 |
--- a/mercurial/context.py Sat Jul 11 01:14:00 2020 +0200 +++ b/mercurial/context.py Sat Jul 11 02:13:19 2020 +0200 @@ -2891,6 +2891,11 @@ return scmutil.status(modified, added, removed, [], [], [], []) + def parents(self): + if self._parents[1].node() == nullid: + return [self._parents[0]] + return self._parents + class memfilectx(committablefilectx): """memfilectx represents an in-memory file to commit.