hgext3rd/topic/stack.py
changeset 2918 0437158e0ed6
parent 2916 17749d9d3968
child 2919 5b514ab2ab4e
--- a/hgext3rd/topic/stack.py	Sat Sep 09 22:32:44 2017 +0530
+++ b/hgext3rd/topic/stack.py	Thu Sep 07 19:43:07 2017 +0200
@@ -170,9 +170,13 @@
             prev = ctx.rev()
             continue
         p1 = ctx.p1()
+        p2 = ctx.p2()
         if p1.obsolete():
             p1 = repo[_singlesuccessor(repo, p1)]
-        if p1.rev() != prev and p1.node() != node.nullid:
+        if p2.node() != node.nullid:
+            entries.append((idxmap.get(p1.rev()), False, p1))
+            entries.append((idxmap.get(p2.rev()), False, p2))
+        elif p1.rev() != prev and p1.node() != node.nullid:
             entries.append((idxmap.get(p1.rev()), False, p1))
         entries.append((idx, True, ctx))
         idxmap[ctx.rev()] = idx