Mercurial > hg
comparison hgext/convert/common.py @ 6870:974f5263f546
merge with crew-stable
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 08 Aug 2008 18:49:55 +0200 |
parents | c9b8d2565b92 93b03f1be289 |
children | 12472a240398 |
comparison
equal
deleted
inserted
replaced
6867:e64f5abb8a88 | 6870:974f5263f546 |
---|---|
222 except TypeError: | 222 except TypeError: |
223 pass | 223 pass |
224 cmdline = [util.shellquote(arg) for arg in cmdline] | 224 cmdline = [util.shellquote(arg) for arg in cmdline] |
225 cmdline += ['2>', util.nulldev, '<', util.nulldev] | 225 cmdline += ['2>', util.nulldev, '<', util.nulldev] |
226 cmdline = ' '.join(cmdline) | 226 cmdline = ' '.join(cmdline) |
227 self.ui.debug(cmdline, '\n') | |
228 return cmdline | 227 return cmdline |
229 | 228 |
230 def _run(self, cmd, *args, **kwargs): | 229 def _run(self, cmd, *args, **kwargs): |
231 cmdline = self._cmdline(cmd, *args, **kwargs) | 230 cmdline = self._cmdline(cmd, *args, **kwargs) |
231 self.ui.debug('running: %s\n' % (cmdline,)) | |
232 self.prerun() | 232 self.prerun() |
233 try: | 233 try: |
234 return util.popen(cmdline) | 234 return util.popen(cmdline) |
235 finally: | 235 finally: |
236 self.postrun() | 236 self.postrun() |