obsolete: use version constants in the format mapping
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 16 Sep 2014 15:57:51 -0700
changeset 22614 e69a199bb127
parent 22613 e623898b80f5
child 22615 4f14303e8954
obsolete: use version constants in the format mapping
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Tue Sep 16 15:56:38 2014 -0700
+++ b/mercurial/obsolete.py	Tue Sep 16 15:57:51 2014 -0700
@@ -210,7 +210,7 @@
 
 # mapping to read/write various marker formats
 # <version> -> (decoder, encoder)
-formats = {0: (_fm0readmarkers, _fm0encodeonemarker)}
+formats = {_fm0version: (_fm0readmarkers, _fm0encodeonemarker)}
 
 def _readmarkers(data):
     """Read and enumerate markers from raw data"""