changeset 21098:399d7770eef2

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.
author FUJIWARA Katsunori <foozy@lares.dti.ne.jp>
date Wed, 16 Apr 2014 03:05:00 +0900
parents e8ef59b351c3
children 12c7cea6235c
files mercurial/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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()