diff mercurial/debugcommands.py @ 39161:858a12846f4f

setdiscovery: don't use dagutil for node -> rev conversion The node -> rev conversion is possible using standard storage APIs and doesn't need to involve the dagutil module. Differential Revision: https://phab.mercurial-scm.org/D4306
author Gregory Szorc <gregory.szorc@gmail.com>
date Thu, 16 Aug 2018 19:47:30 +0000
parents 5b32b3c618b2
children 26f3d075f36e
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Thu Aug 16 19:40:46 2018 +0000
+++ b/mercurial/debugcommands.py	Thu Aug 16 19:47:30 2018 +0000
@@ -794,7 +794,7 @@
                 cl = repo.changelog
                 clnode = cl.node
                 dag = dagutil.revlogdag(cl)
-                all = dag.ancestorset(dag.internalizeall(common))
+                all = dag.ancestorset(cl.rev(n) for n in common)
                 common = {clnode(r) for r in dag.headsetofconnecteds(all)}
         else:
             nodes = None