Mercurial > hg-stable
changeset 46115:c6ae1982b2a1
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
author | Martin von Zweigbergk <martinvonz@google.com> |
---|---|
date | Thu, 10 Dec 2020 01:18:15 -0800 |
parents | 59fa3890d40a |
children | be3d8178251e |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 1 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- 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