Merge with stable.
authorAugie Fackler <raf@durin42.com>
Sun, 17 Nov 2013 13:42:24 -0500
changeset 20029 2e22f30e8437
parent 20027 4b06b2a445a1 (current diff)
parent 20028 28445179df90 (diff)
child 20030 5931489b65e0
Merge with stable.
--- a/mercurial/obsolete.py	Fri Nov 08 12:45:52 2013 +0900
+++ b/mercurial/obsolete.py	Sun Nov 17 13:42:24 2013 -0500
@@ -267,7 +267,8 @@
         Return the number of new marker."""
         if not _enabled:
             raise util.Abort('obsolete feature is not enabled on this repo')
-        new = [m for m in markers if m not in self._all]
+        known = set(self._all)
+        new = [m for m in markers if m not in known]
         if new:
             f = self.sopener('obsstore', 'ab')
             try: