comparison hgext/obsolete.py @ 332:36e2016d6563 stable

obsolete: public changeset are no longer latecomer. They are plain duplicate.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Wed, 27 Jun 2012 17:21:24 +0200
parents 41ba89f0caa5
children fb83210bce32
comparison
equal deleted inserted replaced
330:c2223b3f611a 332:36e2016d6563
891 return set(self.revs('obsolete() - obsolete()::unstable()')) 891 return set(self.revs('obsolete() - obsolete()::unstable()'))
892 892
893 @util.propertycache 893 @util.propertycache
894 def _latecomerset(self): 894 def _latecomerset(self):
895 """the set of rev trying to obsolete public revision""" 895 """the set of rev trying to obsolete public revision"""
896 return set(self.revs('allsuccessors(public()) - obsolete()')) 896 query = 'allsuccessors(public()) - obsolete() - public()'
897 return set(self.revs(query))
897 898
898 def _clearobsoletecache(self): 899 def _clearobsoletecache(self):
899 if '_obsoleteset' in vars(self): 900 if '_obsoleteset' in vars(self):
900 del self._obsoleteset 901 del self._obsoleteset
901 self._clearunstablecache() 902 self._clearunstablecache()