changeset 2147:5179668d9f47

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.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Wed, 22 Mar 2017 17:33:41 +0100
parents 4df68eb96adf
children b727c7de0560
files hgext3rd/evolve/stablerange.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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):