obsfate: mark 'preparesuccessorset' as public
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 16 Jun 2017 17:54:27 +0200
changeset 2608 4dd548327f89
parent 2607 054d92586e43
child 2609 81a94da65dca
obsfate: mark 'preparesuccessorset' as public It is used in another module so it is not really private.
hgext3rd/evolve/obshistory.py
hgext3rd/evolve/templatekw.py
--- a/hgext3rd/evolve/obshistory.py	Fri Jun 16 16:51:31 2017 +0200
+++ b/hgext3rd/evolve/obshistory.py	Fri Jun 16 17:54:27 2017 +0200
@@ -671,7 +671,7 @@
 
     return markers
 
-def _preparesuccessorset(successorset, pathscache):
+def preparesuccessorset(successorset, pathscache):
     """ For a successor set, get all related markers, compute the set of user,
     the min date and the max date
     """
--- a/hgext3rd/evolve/templatekw.py	Fri Jun 16 16:51:31 2017 +0200
+++ b/hgext3rd/evolve/templatekw.py	Fri Jun 16 17:54:27 2017 +0200
@@ -141,7 +141,7 @@
 
     values = []
     for sset in successorssets:
-        raw = obshistory._preparesuccessorset(sset, pathcache)
+        raw = obshistory.preparesuccessorset(sset, pathcache)
 
         # As we can't do something like
         # "{join(map(nodeshort, successors), ', '}" in template, manually