Comments
Patch
@@ -1476,7 +1476,13 @@
ps = set()
cl = repo.changelog
for r in getset(repo, fullreposet(repo), x):
- ps.add(cl.parentrevs(r)[1])
+ if r is None:
+ parents = repo[r].parents()
+ if len(parents) > 1:
+ ps.update([parents[1].rev()])
+ else:
+ ps.add(cl.parentrevs(r)[1])
+
ps -= set([node.nullrev])
# XXX we should turn this into a baseset instead of a set, smartset may do
# some optimisations from the fact this is a baseset.
@@ -74,6 +74,12 @@
date: Thu Jan 01 00:00:00 1970 +0000
summary: e
+ $ hg log -r 'p2(wdir())'
+ changeset: 2:2d95304fed5d
+ user: test
+ date: Thu Jan 01 00:00:00 1970 +0000
+ summary: c
+
$ hg commit -mm1
Should succeed - 2 heads: