Patchwork D3640: state: fix usage of an unassigned variable

login
register
mail settings
Submitter phabricator
Date May 22, 2018, 12:12 p.m.
Message ID <7323e1255c994fb2ec3be709b19b7ce0@localhost.localdomain>
Download mbox | patch
Permalink /patch/31812/
State Not Applicable
Headers show

Comments

phabricator - May 22, 2018, 12:12 p.m.
This revision was automatically updated to reflect the committed changes.
Closed by commit rHGbdc4079ceb16: state: fix usage of an unassigned variable (authored by pulkit, committed by ).

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D3640?vs=8862&id=8869

REVISION DETAIL
  https://phab.mercurial-scm.org/D3640

AFFECTED FILES
  mercurial/state.py

CHANGE DETAILS




To: pulkit, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/state.py b/mercurial/state.py
--- a/mercurial/state.py
+++ b/mercurial/state.py
@@ -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):