changeset 7610:878466138b57

convert: print darcs error messages iff --debug
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 07 Jan 2009 17:33:29 -0800
parents 82107c6b009e
children dafcc96c1285
files hgext/convert/common.py
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/convert/common.py	Wed Jan 07 17:33:07 2009 -0800
+++ b/hgext/convert/common.py	Wed Jan 07 17:33:29 2009 -0800
@@ -228,7 +228,9 @@
             except TypeError:
                 pass
         cmdline = [util.shellquote(arg) for arg in cmdline]
-        cmdline += ['2>', util.nulldev, '<', util.nulldev]
+        if not self.ui.debug:
+            cmdline += ['2>', util.nulldev]
+        cmdline += ['<', util.nulldev]
         cmdline = ' '.join(cmdline)
         return cmdline