obsolete: use the `version` argument in encodemarkers
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 16 Sep 2014 15:56:38 -0700
changeset 22613 e623898b80f5
parent 22612 fdfa40ee75cf
child 22614 e69a199bb127
obsolete: use the `version` argument in encodemarkers Recent scientific studies show that assigning a variable have no effect on a unrelated constant. We therefore use the variable where we intended to in the first place.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Fri Sep 12 14:41:43 2014 +0200
+++ b/mercurial/obsolete.py	Tue Sep 16 15:56:38 2014 -0700
@@ -227,7 +227,7 @@
     # markers exchange.
     encodeone = formats[version][1]
     if addheader:
-        yield _pack('>B', _fm0version)
+        yield _pack('>B', version)
     for marker in markers:
         yield encodeone(marker)