D8263: gitlog: fix embarassing bug that prevented log from showing correct parents
durin42 (Augie Fackler)
phabricator at mercurial-scm.org
Sat Mar 7 22:45:26 UTC 2020
durin42 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.
REVISION SUMMARY
We had the correct parents in the database, but the changelog was
always returning p1 for all parents. Oops.
REPOSITORY
rHG Mercurial
BRANCH
default
REVISION DETAIL
https://phab.mercurial-scm.org/D8263
AFFECTED FILES
hgext/git/gitlog.py
CHANGE DETAILS
diff --git a/hgext/git/gitlog.py b/hgext/git/gitlog.py
--- a/hgext/git/gitlog.py
+++ b/hgext/git/gitlog.py
@@ -274,7 +274,7 @@
if len(c.parents) > 2:
raise error.Abort(b'TODO octopus merge handling')
if len(c.parents) == 2:
- p2 = self.rev(c.parents[0].id.raw)
+ p2 = self.rev(c.parents[1].id.raw)
return p1, p2
# Private method is used at least by the tags code.
To: durin42, #hg-reviewers
Cc: mercurial-devel
More information about the Mercurial-devel
mailing list