changeset 2610:ee37ab3de5f7

obsfate: split markers fetch from successor set annotation This will help to improve support for pruned changesets.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 16 Jun 2017 17:58:17 +0200
parents 81a94da65dca
children 45f5dbb24684
files hgext3rd/evolve/obshistory.py hgext3rd/evolve/templatekw.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py	Fri Jun 16 17:55:55 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py	Fri Jun 16 17:58:17 2017 +0200
@@ -671,12 +671,11 @@
 
     return markers
 
-def preparesuccessorset(successorset, pathscache):
+def preparesuccessorset(successorset, rawmarkers):
     """ For a successor set, get all related markers, compute the set of user,
     the min date and the max date
     """
     hex = nodemod.hex
-    rawmarkers = successorsetallmarkers(successorset, pathscache)
 
     successorset = [hex(n) for n in successorset]
 
--- a/hgext3rd/evolve/templatekw.py	Fri Jun 16 17:55:55 2017 +0200
+++ b/hgext3rd/evolve/templatekw.py	Fri Jun 16 17:58:17 2017 +0200
@@ -141,7 +141,8 @@
 
     values = []
     for sset in successorssets:
-        raw = obshistory.preparesuccessorset(sset, pathcache)
+        rawmarkers = obshistory.successorsetallmarkers(sset, pathcache)
+        raw = obshistory.preparesuccessorset(sset, rawmarkers)
 
         # As we can't do something like
         # "{join(map(nodeshort, successors), ', '}" in template, manually