changeset 2134:ef81e34ad674

write to stderr with a single write call. this works around issue88.
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Wed, 26 Apr 2006 10:57:40 -0700
parents 4334be196f8d
children 11ad47f22023
files mercurial/commands.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py
+++ b/mercurial/commands.py
@@ -3447,7 +3447,7 @@ def dispatch(args):
         u.warn(_("hg: unknown command '%s'\n") % inst.args[0])
         help_(u, 'shortlist')
     except hg.RepoError, inst:
-        u.warn(_("abort: "), inst, "!\n")
+        u.warn(_("abort: %s!\n") % inst)
     except lock.LockHeld, inst:
         if inst.errno == errno.ETIMEDOUT:
             reason = _('timed out waiting for lock held by %s') % inst.locker