Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
7609:82107c6b009e | 7610:878466138b57 |
---|---|
226 else: | 226 else: |
227 cmdline[-1] += '=' + v | 227 cmdline[-1] += '=' + v |
228 except TypeError: | 228 except TypeError: |
229 pass | 229 pass |
230 cmdline = [util.shellquote(arg) for arg in cmdline] | 230 cmdline = [util.shellquote(arg) for arg in cmdline] |
231 cmdline += ['2>', util.nulldev, '<', util.nulldev] | 231 if not self.ui.debug: |
232 cmdline += ['2>', util.nulldev] | |
233 cmdline += ['<', util.nulldev] | |
232 cmdline = ' '.join(cmdline) | 234 cmdline = ' '.join(cmdline) |
233 return cmdline | 235 return cmdline |
234 | 236 |
235 def _run(self, cmd, *args, **kwargs): | 237 def _run(self, cmd, *args, **kwargs): |
236 cmdline = self._cmdline(cmd, *args, **kwargs) | 238 cmdline = self._cmdline(cmd, *args, **kwargs) |