Mercurial > hg > buttercup
comparison buttercup/checkout.py @ 24:88f3d83eb858
better formatting for list
author | Jeff Hammel <jhammel@mozilla.com> |
---|---|
date | Mon, 30 May 2011 21:03:45 -0700 |
parents | 1f54294629f9 |
children | a54543838686 |
comparison
equal
deleted
inserted
replaced
23:425a3c73ac1d | 24:88f3d83eb858 |
---|---|
54 options, args = parser.parse_args(args) | 54 options, args = parser.parse_args(args) |
55 | 55 |
56 # list sources if specified | 56 # list sources if specified |
57 if options.list: | 57 if options.list: |
58 for source in sources: | 58 for source in sources: |
59 print source[0], source[1] | 59 print '%s: %s' % (source[0], source[1]) |
60 sys.exit(0) | 60 sys.exit(0) |
61 | 61 |
62 # setup the src directory in a virtualenv | 62 # setup the src directory in a virtualenv |
63 assert 'VIRTUAL_ENV' in os.environ, "You must have a virtualenv activated" | 63 assert 'VIRTUAL_ENV' in os.environ, "You must have a virtualenv activated" |
64 src = os.path.join(os.environ['VIRTUAL_ENV'], 'src') | 64 src = os.path.join(os.environ['VIRTUAL_ENV'], 'src') |