equal
deleted
inserted
replaced
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 |