obsolete: public changeset are no longer latecomer. stable
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Wed, 27 Jun 2012 17:21:24 +0200
branchstable
changeset 332 36e2016d6563
parent 330 c2223b3f611a
child 333 adeebf3b9ac3
child 334 fb83210bce32
obsolete: public changeset are no longer latecomer. They are plain duplicate.
hgext/obsolete.py
--- a/hgext/obsolete.py	Wed Jun 27 15:28:35 2012 +0200
+++ b/hgext/obsolete.py	Wed Jun 27 17:21:24 2012 +0200
@@ -893,7 +893,8 @@
         @util.propertycache
         def _latecomerset(self):
             """the set of rev trying to obsolete public revision"""
-            return set(self.revs('allsuccessors(public()) - obsolete()'))
+            query = 'allsuccessors(public()) - obsolete() - public()'
+            return set(self.revs(query))
 
         def _clearobsoletecache(self):
             if '_obsoleteset' in vars(self):