hgext/convert/common.py
changeset 6868 93b03f1be289
parent 6332 950e72fc7cf3
child 6870 974f5263f546
child 7073 af1117f37fa7
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()