convert: print darcs error messages iff --debug
authorBryan O'Sullivan <bos@serpentine.com>
Wed, 07 Jan 2009 17:33:29 -0800
changeset 7610 878466138b57
parent 7609 82107c6b009e
child 7611 dafcc96c1285
convert: print darcs error messages iff --debug
hgext/convert/common.py
--- 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