Mercurial > hg
comparison hgext/convert/common.py @ 6868:93b03f1be289
convert: Fix debugging output when running multiple commands with xargs.
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 08 Aug 2008 18:37:50 +0200 |
parents | 950e72fc7cf3 |
children | 974f5263f546 af1117f37fa7 |
comparison
equal
deleted
inserted
replaced
6865:d923a051f84c | 6868:93b03f1be289 |
---|---|
230 except TypeError: | 230 except TypeError: |
231 pass | 231 pass |
232 cmdline = [util.shellquote(arg) for arg in cmdline] | 232 cmdline = [util.shellquote(arg) for arg in cmdline] |
233 cmdline += ['2>', util.nulldev, '<', util.nulldev] | 233 cmdline += ['2>', util.nulldev, '<', util.nulldev] |
234 cmdline = ' '.join(cmdline) | 234 cmdline = ' '.join(cmdline) |
235 self.ui.debug(cmdline, '\n') | |
236 return cmdline | 235 return cmdline |
237 | 236 |
238 def _run(self, cmd, *args, **kwargs): | 237 def _run(self, cmd, *args, **kwargs): |
239 cmdline = self._cmdline(cmd, *args, **kwargs) | 238 cmdline = self._cmdline(cmd, *args, **kwargs) |
239 self.ui.debug('running: %s\n' % (cmdline,)) | |
240 self.prerun() | 240 self.prerun() |
241 try: | 241 try: |
242 return util.popen(cmdline) | 242 return util.popen(cmdline) |
243 finally: | 243 finally: |
244 self.postrun() | 244 self.postrun() |