changeset 32481 | a87dabb053d0 |
parent 32452 | b647b923486f |
child 32660 | a722c8e17363 |
--- a/mercurial/localrepo.py Sun May 21 15:56:02 2017 +0200 +++ b/mercurial/localrepo.py Thu May 25 23:18:02 2017 +0900 @@ -573,6 +573,10 @@ return context.changectx(self, changeid) def __contains__(self, changeid): + """True if the given changeid exists + + error.LookupError is raised if an ambiguous node specified. + """ try: self[changeid] return True