diff hgext/convert/common.py @ 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 f77c8d8331ca
children dafcc96c1285
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