Mercurial > hg > config
comparison python/setup_repo.py @ 463:66c2a17d8424
python/setup_repo.py
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Sat, 10 Aug 2013 18:34:31 -0700 |
parents | 48deb57f52d1 |
children | 35f3730870e7 |
comparison
equal
deleted
inserted
replaced
462:48deb57f52d1 | 463:66c2a17d8424 |
---|---|
30 | 30 |
31 if isinstance(command, string): | 31 if isinstance(command, string): |
32 command_str = command | 32 command_str = command |
33 else: | 33 else: |
34 if len(command) == 1: | 34 if len(command) == 1: |
35 command_str = command[0] | 35 command_str = subprocess.list2cmdline(command) |
36 else: | 36 |
37 command_str = '%s %s' % (command[0], | |
38 ' '.join(["'%s'" % i | |
39 for i in command[1:]))) | |
40 print 'Running:\n%s' % (command_str) | 37 print 'Running:\n%s' % (command_str) |
41 if globals()['dry_run']: | 38 if globals()['dry_run']: |
42 return | 39 return |
43 return subprocess.check_output(*args, **kwargs) | 40 return subprocess.check_output(*args, **kwargs) |
44 | 41 |