# HG changeset patch # User Martin von Zweigbergk # Date 2020-12-10 09:18:15 # Node ID c6ae1982b2a1271bc8cbdd7b0f1d6f13bd39aae5 # Parent 59fa3890d40a1318fbb6664faaf022d0c7b2f60d localrepo: delete obsolete comment about `prefix in repo` raising exception We dropped support for `prefix in repo`, where `prefix` is a hex prefix, in 8b86acc7aa64 (context: drop support for looking up context by ambiguous changeid (API), 2018-04-28), after having deprecated it a while before that. These days you get a `ProgrammingError` instead if you pass in a short nodeid. Differential Revision: https://phab.mercurial-scm.org/D9599 diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1754,11 +1754,7 @@ class localrepository(object): 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