obsolete: fix decoding error message arguments stable
authorPierre-Yves David <pierre-yves.david@ens-lyon.org>
Thu, 26 Jul 2012 16:21:43 +0200
branchstable
changeset 17253 67f56ff5afcd
parent 17252 16fad7323e56
child 17254 0deb66d4ad81
obsolete: fix decoding error message arguments
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Tue Jul 24 21:20:56 2012 +0200
+++ b/mercurial/obsolete.py	Thu Jul 26 16:21:43 2012 +0200
@@ -96,7 +96,7 @@
         if len(metadata) != mdsize:
             raise util.Abort(_('parsing obsolete marker: metadata is too '
                                'short, %d bytes expected, got %d')
-                             % (len(metadata), mdsize))
+                             % (mdsize, len(metadata)))
         off += mdsize
         yield (pre, sucs, flags, metadata)