stablerange: explicitly create a stablerange entry for branchpoint method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Thu, 21 Dec 2017 03:07:14 +0100
changeset 3345 72b1f300800f
parent 3344 4d054737a79c
child 3346 f4e28b781143
stablerange: explicitly create a stablerange entry for branchpoint method We are about to change the default.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Mon Dec 18 02:17:29 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Thu Dec 21 03:07:14 2017 +0100
@@ -77,7 +77,8 @@
     return ranges
 
 _stablerangemethodmap = {
-    'branchpoint': lambda repo: repo.stablerange,
+    'branchpoint': lambda repo: stablerange(),
+    'default': lambda repo: repo.stablerange,
     'basic-branchpoint': lambda repo: stablerangebasic(),
     'basic-mergepoint': lambda repo: stablerangedummy_mergepoint(),
     'mergepoint': lambda repo: stablerange_mergepoint(),