diff -r afa884015e66 -r 24a1f67bb75a mercurial/scmutil.py --- a/mercurial/scmutil.py Thu Jan 10 16:03:07 2019 +0100 +++ b/mercurial/scmutil.py Thu Jan 10 15:23:58 2019 +0100 @@ -723,7 +723,7 @@ allspecs = [] for spec in specs: if isinstance(spec, int): - spec = revsetlang.formatspec('rev(%d)', spec) + spec = revsetlang.formatspec('%d', spec) allspecs.append(spec) return repo.anyrevs(allspecs, user=True, localalias=localalias)