changeset 22613:e623898b80f5

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 16 Sep 2014 15:56:38 -0700
parents fdfa40ee75cf
children e69a199bb127
files mercurial/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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)