mercurial/localrepo.py
changeset 24320 b9f7f3eeb99c
parent 24306 6ddc86eedc3b
child 24373 59cc09240afb
--- a/mercurial/localrepo.py	Mon Mar 16 13:41:45 2015 -0500
+++ b/mercurial/localrepo.py	Sun Aug 17 11:35:31 2014 +0900
@@ -465,7 +465,8 @@
 
     def __contains__(self, changeid):
         try:
-            return bool(self.lookup(changeid))
+            self[changeid]
+            return True
         except error.RepoLookupError:
             return False