mercurial/localrepo.py
changeset 46114 c6ae1982b2a1
parent 46096 4d5e2fd53707
child 46234 9804162a4053
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