mercurial/state.py
changeset 38126 bdc4079ceb16
parent 38106 a0e4d654bceb
child 38127 b7e5c53a779e
--- a/mercurial/state.py	Sun May 20 18:53:03 2018 +0530
+++ b/mercurial/state.py	Tue May 22 00:22:23 2018 +0530
@@ -62,7 +62,7 @@
                                          " an integer")
 
         with self._repo.vfs(self.fname, 'wb', atomictemp=True) as fp:
-            fp.write('%d\n' % iv)
+            fp.write('%d\n' % version)
             cbor.dump(self.opts, fp, canonical=True)
 
     def _read(self):