obsolete: add '%' specifier to the format string to avoid TypeError at runtime
authorFUJIWARA Katsunori <foozy@lares.dti.ne.jp>
Wed, 16 Apr 2014 03:05:00 +0900
changeset 21098 399d7770eef2
parent 21097 e8ef59b351c3
child 21099 12c7cea6235c
obsolete: add '%' specifier to the format string to avoid TypeError at runtime Mapping operation on the format string not including any '%' specifiers causes TypeError at runtime.
mercurial/obsolete.py
--- a/mercurial/obsolete.py	Wed Apr 16 03:05:00 2014 +0900
+++ b/mercurial/obsolete.py	Wed Apr 16 03:05:00 2014 +0900
@@ -385,7 +385,7 @@
         repo.ui.warn(_('unknown key: %r') % key)
         return 0
     if old:
-        repo.ui.warn(_('unexpected old value') % key)
+        repo.ui.warn(_('unexpected old value for %r') % key)
         return 0
     data = base85.b85decode(new)
     lock = repo.lock()