[PATCH] purge --print: duplicate output (issue4092)
Anurag Goel
anurag.dsps at gmail.com
Wed Feb 12 15:13:14 CST 2014
# HG changeset patch
# User anuraggoel <anurag.dsps at gmail.com>
# Date 1392239473 -19800
# Thu Feb 13 02:41:13 2014 +0530
# Node ID 05dc3cf8eb62f4dc3b19404c9b5d47ed0f9f63d2
# Parent d98ba4a87427ce601dd23de8d4f5288cc44fe945
purge --print: duplicate output (issue4092)
Previously when "ui.verbose" is configured to true then "purge --print" results in each file being printed twice.Now it has been resolved.
I have run test suits also and it works perfectly fine.
diff -r d98ba4a87427 -r 05dc3cf8eb62 hgext/purge.py
--- a/hgext/purge.py Mon Feb 10 17:31:26 2014 -0600
+++ b/hgext/purge.py Thu Feb 13 02:41:13 2014 +0530
@@ -82,7 +82,8 @@
raise util.Abort(m)
ui.warn(_('warning: %s\n') % m)
else:
- ui.write('%s%s' % (name, eol))
+ if not ui.verbose:
+ ui.write('%s%s' % (name, eol))
def removefile(path):
try:
More information about the Mercurial-devel
mailing list