obscache: update the format to allow negative tiprev
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Tue, 02 May 2017 16:11:43 +0200
changeset 2302 acd2431dff29
parent 2301 54b2fddbc2f5
child 2303 8534400111fd
obscache: update the format to allow negative tiprev If the changelog is empty (but the obsstore is not) the 'tiprev' will be -1.
hgext3rd/evolve/obscache.py
--- a/hgext3rd/evolve/obscache.py	Tue May 02 16:09:03 2017 +0200
+++ b/hgext3rd/evolve/obscache.py	Tue May 02 16:11:43 2017 +0200
@@ -187,7 +187,7 @@
     """
 
     _filepath = 'cache/evoext-obscache-00'
-    _headerformat = '>I20sQQ20s'
+    _headerformat = '>q20sQQ20s'
 
     def __init__(self, repo):
         self._vfs = repo.vfs