Submitter | phabricator |
---|---|
Date | July 11, 2020, 9:12 p.m. |
Message ID | <differential-rev-PHID-DREV-fvaagxdxkgfwzhtmlvji-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/46697/ |
State | Superseded |
Headers | show |
Comments
Patch
diff --git a/mercurial/context.py b/mercurial/context.py --- a/mercurial/context.py +++ b/mercurial/context.py @@ -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.