Mercurial > public > mercurial-scm > hg
diff hgext/mq.py @ 5878:d39af2eabb8c
transform a bunch of print statements to appropriate ui calls
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Fri, 18 Jan 2008 10:48:25 -0600 |
parents | 4107e823dc2c |
children | 30d2fecaab76 |
line wrap: on
line diff
--- a/hgext/mq.py Fri Jan 18 10:07:36 2008 -0600 +++ b/hgext/mq.py Fri Jan 18 10:48:25 2008 -0600 @@ -224,7 +224,7 @@ def write_list(items, path): fp = self.opener(path, 'w') for i in items: - print >> fp, i + fp.write("%s\n" % i) fp.close() if self.applied_dirty: write_list(map(str, self.applied), self.status_path) if self.series_dirty: write_list(self.full_series, self.series_path) @@ -1267,7 +1267,7 @@ self.ui.warn("saved queue repository parents: %s %s\n" % (hg.short(qpp[0]), hg.short(qpp[1]))) if qupdate: - print "queue directory updating" + self.ui.status(_("queue directory updating\n")) r = self.qrepo() if not r: self.ui.warn("Unable to load queue repository\n")