mercurial/commands.py
changeset 49229 ed9170ff791a
parent 49172 5ad37b5bfb31
child 49306 2e726c934fcd
--- a/mercurial/commands.py	Fri May 20 14:27:46 2022 +0200
+++ b/mercurial/commands.py	Tue May 17 13:53:14 2022 +0100
@@ -1600,8 +1600,9 @@
             raise error.InputError(
                 _(b"--base is incompatible with specifying destinations")
             )
-        common = [repo[rev].node() for rev in base]
-        heads = [repo[r].node() for r in revs] if revs else None
+        cl = repo.changelog
+        common = [cl.node(rev) for rev in base]
+        heads = [cl.node(r) for r in revs] if revs else None
         outgoing = discovery.outgoing(repo, common, heads)
         missing = outgoing.missing
         excluded = outgoing.excluded