Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 3072:bc3fe3b5b785
Never apply string formatting to generated errors with util.Abort.
Otherwise error messages containing % chars yield errors or worse.
Fixed (hopefully) all users of util.Abort.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 08 Sep 2006 09:36:18 +0200 |
parents | a4374f7331e4 |
children | 1a792e4a1f3a |
line wrap: on
line diff
--- a/hgext/mq.py Fri Sep 08 02:16:16 2006 +0200 +++ b/hgext/mq.py Fri Sep 08 09:36:18 2006 +0200 @@ -1479,7 +1479,7 @@ if not files: raise util.Abort(_('qfold requires at least one patch name')) if not q.check_toppatch(repo): - raise util.Abort(_('No patches applied\n')) + raise util.Abort(_('No patches applied')) message = commands.logmessage(opts) if opts['edit']: