~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Aaron Bentley
  • Date: 2007-03-20 18:22:48 UTC
  • mto: This revision was merged to the branch mainline in revision 2528.
  • Revision ID: abentley@panoramicfeedback.com-20070320182248-vesy3708ewvcbtln
Make verbose mean what I want

Show diffs side-by-side

added added

removed removed

Lines of Context:
301
301
def show_component_info(control, repository, branch=None, working=None,
302
302
    verbose=1):
303
303
    """Write info about all bzrdir components to stdout"""
304
 
    verbose = {False: 1, True: 2}.get(verbose, verbose)
 
304
    if verbose is False:
 
305
        verbose = 1
 
306
    if verbose is True:
 
307
        verbose = 2
305
308
    layout = describe_layout(repository, branch, working)
306
309
    format = describe_format(control, repository, branch, working)
307
310
    print "%s (format: %s)" % (layout, format)
308
311
    _show_location_info(repository, branch, working)
 
312
    if verbose == 0:
 
313
        return
309
314
    if branch is not None:
310
315
        _show_related_info(branch)
311
316
    _show_format_info(control, repository, branch, working)