mercurial/debugcommands.py
changeset 39159 5b32b3c618b2
parent 39153 9d6fab487c13
child 39161 858a12846f4f
--- a/mercurial/debugcommands.py	Thu Aug 16 19:23:24 2018 +0000
+++ b/mercurial/debugcommands.py	Thu Aug 16 19:39:47 2018 +0000
@@ -791,9 +791,11 @@
             if not opts.get('nonheads'):
                 ui.write(("unpruned common: %s\n") %
                          " ".join(sorted(short(n) for n in common)))
-                dag = dagutil.revlogdag(repo.changelog)
+                cl = repo.changelog
+                clnode = cl.node
+                dag = dagutil.revlogdag(cl)
                 all = dag.ancestorset(dag.internalizeall(common))
-                common = dag.externalizeall(dag.headsetofconnecteds(all))
+                common = {clnode(r) for r in dag.headsetofconnecteds(all)}
         else:
             nodes = None
             if pushedrevs: