Mercurial > hg-stable
changeset 44492:f19491aae641
gitlog: fix embarassing bug that prevented log from showing correct parents
We had the correct parents in the database, but the changelog was
always returning p1 for all parents. Oops.
Differential Revision: https://phab.mercurial-scm.org/D8263
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Sat, 07 Mar 2020 17:42:40 -0500 |
parents | 7518ea76eff4 |
children | 8b5f5d8ad783 |
files | hgext/git/gitlog.py |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext/git/gitlog.py Sat Mar 07 16:51:21 2020 -0500 +++ b/hgext/git/gitlog.py Sat Mar 07 17:42:40 2020 -0500 @@ -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.