Kiln » TortoiseHg » TortoiseHg
Clone URL:  
Pushed to one repository · View In Graph Contained in 0.8, 0.8.1, and 0.8.2

hgtk: use ui.status instead of ui.warn for error messages

ui.warn writes to stdout by default, which is now piped to a StringIO
to keep GTK messages from ruining everyone's day.

Changeset be9effaefaec

Parent 42c408b33af0

by Steve Borho

Changes to one file · Browse files at be9effaefaec Showing diff from parent 42c408b33af0 Diff from another changeset...

Change 1 of 1 Show Entire File hggtk/​hgtk.py Stacked
 
115
116
117
118
 
119
120
121
 
122
123
124
 
125
126
127
 
128
129
130
 
131
132
133
 
115
116
117
 
118
119
120
 
121
122
123
 
124
125
126
 
127
128
129
 
130
131
132
133
@@ -115,19 +115,19 @@
  ui.flush()   except hglib.ParseError, inst:   if inst.args[0]: - ui.warn(_("hgtk %s: %s\n") % (inst.args[0], inst.args[1])) + ui.status(_("hgtk %s: %s\n") % (inst.args[0], inst.args[1]))   help_(ui, inst.args[0])   else: - ui.warn(_("hgtk: %s\n") % inst.args[1]) + ui.status(_("hgtk: %s\n") % inst.args[1])   help_(ui, 'shortlist')   except hglib.AmbiguousCommand, inst: - ui.warn(_("hgtk: command '%s' is ambiguous:\n %s\n") % + ui.status(_("hgtk: command '%s' is ambiguous:\n %s\n") %   (inst.args[0], " ".join(inst.args[1])))   except hglib.UnknownCommand, inst: - ui.warn(_("hgtk: unknown command '%s'\n") % inst.args[0]) + ui.status(_("hgtk: unknown command '%s'\n") % inst.args[0])   help_(ui, 'shortlist')   except hglib.RepoError, inst: - ui.warn(_("abort: %s!\n") % inst) + ui.status(_("abort: %s!\n") % inst)     return -1