obsfate: split markers fetch from successor set annotation
This will help to improve support for pruned changesets.
--- 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