hgext/obsolete.py
changeset 302 d68ccae92d52
parent 301 b41ff69388a8
child 304 7c68899b521e
equal deleted inserted replaced
301:b41ff69388a8 302:d68ccae92d52
   842             # Assume oldnodes are all descendants of a single rev
   842             # Assume oldnodes are all descendants of a single rev
   843             rootrevs = self.revs('roots(%ln)', oldnodes)
   843             rootrevs = self.revs('roots(%ln)', oldnodes)
   844             assert len(rootrevs) == 1, rootrevs
   844             assert len(rootrevs) == 1, rootrevs
   845             rootnode = self[rootrevs[0]].node()
   845             rootnode = self[rootrevs[0]].node()
   846             for n in oldnodes:
   846             for n in oldnodes:
   847                 if n != rootnode:
       
   848                     self.addobsolete(n, rootnode)
       
   849                 self.addobsolete(newnode, n)
   847                 self.addobsolete(newnode, n)
   850 
   848 
   851         def _turn_extinct_secret(self):
   849         def _turn_extinct_secret(self):
   852             """ensure all extinct changeset are secret"""
   850             """ensure all extinct changeset are secret"""
   853             self._clearobsoletecache()
   851             self._clearobsoletecache()