~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Jelmer Vernooij
  • Date: 2012-02-20 13:38:56 UTC
  • mto: (6437.23.12 2.5)
  • mto: This revision was merged to the branch mainline in revision 6473.
  • Revision ID: jelmer@samba.org-20120220133856-v6vh35o51n21v5ru
Cope with repository being missing in more cases.

Show diffs side-by-side

added added

removed removed

Lines of Context:
414
414
    if branch is not None:
415
415
        show_committers = verbose >= 2
416
416
        stats = _show_branch_stats(branch, show_committers, outfile)
417
 
    else:
 
417
    elif repository is not None:
418
418
        stats = repository.gather_stats()
419
 
    if branch is None and working is None:
 
419
    if branch is None and working is None and repository is not None:
420
420
        _show_repository_info(repository, outfile)
421
 
    _show_repository_stats(repository, stats, outfile)
 
421
    if repository is not None:
 
422
        _show_repository_stats(repository, stats, outfile)
422
423
 
423
424
 
424
425
def describe_layout(repository=None, branch=None, tree=None, control=None):