mercurial/localrepo.py
changeset 37385 ecd3f6909184
parent 37352 92171562c7f3
child 37615 f3dc8239e3a9
equal deleted inserted replaced
37384:5c9d0af7b02e 37385:ecd3f6909184
   800         error.LookupError is raised if an ambiguous node specified.
   800         error.LookupError is raised if an ambiguous node specified.
   801         """
   801         """
   802         try:
   802         try:
   803             self[changeid]
   803             self[changeid]
   804             return True
   804             return True
   805         except error.RepoLookupError:
   805         except (error.RepoLookupError, error.FilteredIndexError,
       
   806                 error.FilteredLookupError):
   806             return False
   807             return False
   807 
   808 
   808     def __nonzero__(self):
   809     def __nonzero__(self):
   809         return True
   810         return True
   810 
   811