Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hg.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 | 3acb76f0124d |
children | 705e30c0a230 |
line wrap: on
line diff
--- a/mercurial/hg.py Fri Sep 08 02:16:16 2006 +0200 +++ b/mercurial/hg.py Fri Sep 08 09:36:18 2006 +0200 @@ -115,7 +115,7 @@ source = localpath(source) if os.path.exists(dest): - raise util.Abort(_("destination '%s' already exists"), dest) + raise util.Abort(_("destination '%s' already exists") % dest) class DirCleanup(object): def __init__(self, dir_):