stablerange: change the key to use the revision number
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Wed, 22 Mar 2017 17:33:41 +0100
changeset 2147 5179668d9f47
parent 2146 4df68eb96adf
child 2148 b727c7de0560
stablerange: change the key to use the revision number Using node is more stable but for now do not have on disk caching and revision number should be find in memory. This makes the data used for the file cache closer to what it will be when we use tuple. We might reintroduce node in the future but let us keep it simple for now.
hgext3rd/evolve/stablerange.py
--- a/hgext3rd/evolve/stablerange.py	Wed Mar 22 06:05:44 2017 +0100
+++ b/hgext3rd/evolve/stablerange.py	Wed Mar 22 17:33:41 2017 +0100
@@ -373,7 +373,7 @@
 
     @util.propertycache
     def stablekey(self):
-        return (self.node, self.index)
+        return (self.head, self.index)
 
     @util.propertycache
     def node(self):