diff mercurial/dispatch.py @ 11683:757f39fa1162

dispatch: write Abort hint to stderr too
author Patrick Mezard <pmezard@gmail.com>
date Mon, 26 Jul 2010 22:28:37 +0200
parents 4d9b4725acac
children b6360a113478
line wrap: on
line diff
--- a/mercurial/dispatch.py	Mon Jul 26 22:26:12 2010 +0200
+++ b/mercurial/dispatch.py	Mon Jul 26 22:28:37 2010 +0200
@@ -24,7 +24,7 @@
     except util.Abort, inst:
         sys.stderr.write(_("abort: %s\n") % inst)
         if inst.hint:
-            sys.stdout.write(_("(%s)\n") % inst.hint)
+            sys.stderr.write(_("(%s)\n") % inst.hint)
         return -1
     except error.ParseError, inst:
         if len(inst.args) > 1:
@@ -119,7 +119,7 @@
     except util.Abort, inst:
         ui.warn(_("abort: %s\n") % inst)
         if inst.hint:
-            ui.status(_("(%s)\n") % inst.hint)
+            ui.warn(_("(%s)\n") % inst.hint)
     except ImportError, inst:
         ui.warn(_("abort: %s!\n") % inst)
         m = str(inst).split()[-1]