# HG changeset patch # User Pierre-Yves David # Date 1494927696 -7200 # Node ID 6308a8c04cceedc8f289a1847abcc8fbe9095ea8 # Parent 2a1aad0fd8bf186768a1d42ca5dbbb2804b935c4 obshashrange: keep value fetched from sql in memory This will reduce the number of roundtrip to the data base we need. diff -r 2a1aad0fd8bf -r 6308a8c04cce hgext3rd/evolve/obsdiscovery.py --- a/hgext3rd/evolve/obsdiscovery.py Tue May 16 11:37:45 2017 +0200 +++ b/hgext3rd/evolve/obsdiscovery.py Tue May 16 11:41:36 2017 +0200 @@ -456,6 +456,7 @@ obshash = self._con.execute(_queryobshash, nrange).fetchone() if obshash is not None: value = obshash[0] + self._data[rangeid] = value return value def __setitem__(self, rangeid, obshash):