diff -r 59fa3890d40a -r c6ae1982b2a1 mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Dec 01 21:54:46 2020 +0100 +++ b/mercurial/localrepo.py Thu Dec 10 01:18:15 2020 -0800 @@ -1754,11 +1754,7 @@ return context.workingctx(self) def __contains__(self, changeid): - """True if the given changeid exists - - error.AmbiguousPrefixLookupError is raised if an ambiguous node - specified. - """ + """True if the given changeid exists""" try: self[changeid] return True