localrepo: delete obsolete comment about `prefix in repo` raising exception
authorMartin von Zweigbergk <martinvonz@google.com>
Thu, 10 Dec 2020 01:18:15 -0800
changeset 46114 c6ae1982b2a1
parent 46113 59fa3890d40a
child 46115 be3d8178251e
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
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