write to stderr with a single write call.
authorBenoit Boissinot <benoit.boissinot@ens-lyon.org>
Wed, 26 Apr 2006 10:57:40 -0700
changeset 2134 ef81e34ad674
parent 2133 4334be196f8d
child 2135 11ad47f22023
write to stderr with a single write call. this works around issue88.
mercurial/commands.py
--- a/mercurial/commands.py	Wed Apr 26 16:54:07 2006 +0200
+++ b/mercurial/commands.py	Wed Apr 26 10:57:40 2006 -0700
@@ -3447,7 +3447,7 @@
         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