Mercurial > public > mercurial-scm > hg
comparison mercurial/localrepo.py @ 46114: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 | 4d5e2fd53707 |
children | 9804162a4053 |
comparison
equal
deleted
inserted
replaced
46113:59fa3890d40a | 46114:c6ae1982b2a1 |
---|---|
1752 ) | 1752 ) |
1753 except error.WdirUnsupported: | 1753 except error.WdirUnsupported: |
1754 return context.workingctx(self) | 1754 return context.workingctx(self) |
1755 | 1755 |
1756 def __contains__(self, changeid): | 1756 def __contains__(self, changeid): |
1757 """True if the given changeid exists | 1757 """True if the given changeid exists""" |
1758 | |
1759 error.AmbiguousPrefixLookupError is raised if an ambiguous node | |
1760 specified. | |
1761 """ | |
1762 try: | 1758 try: |
1763 self[changeid] | 1759 self[changeid] |
1764 return True | 1760 return True |
1765 except error.RepoLookupError: | 1761 except error.RepoLookupError: |
1766 return False | 1762 return False |