mercurial/obsutil.py
changeset 33912 e278d6d2d7d2
parent 33911 34e10e09afa5
child 33941 c0bbaefc2c5a
equal deleted inserted replaced
33911:34e10e09afa5 33912:e278d6d2d7d2
   565                         final.append(listversion)
   565                         final.append(listversion)
   566                         seen.append((setversion, listversion))
   566                         seen.append((setversion, listversion))
   567                 final.reverse() # put small successors set first
   567                 final.reverse() # put small successors set first
   568                 cache[current] = final
   568                 cache[current] = final
   569     return cache[initialnode]
   569     return cache[initialnode]
       
   570 
       
   571 def successorsandmarkers(repo, ctx):
       
   572     """compute the raw data needed for computing obsfate
       
   573     Returns a list of dict, one dict per successors set
       
   574     """
       
   575     if not ctx.obsolete():
       
   576         return None
       
   577 
       
   578     ssets = successorssets(repo, ctx.node(), closest=True)
       
   579 
       
   580     values = []
       
   581     for sset in ssets:
       
   582         values.append({'successors': sset, 'markers': sset.markers})
       
   583 
       
   584     return values