~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Jelmer Vernooij
  • Date: 2012-04-02 01:44:26 UTC
  • mfrom: (6518 +trunk)
  • mto: This revision was merged to the branch mainline in revision 6519.
  • Revision ID: jelmer@samba.org-20120402014426-0o5qtysohyl006b2
merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
200
200
            repository._format.get_format_description())
201
201
 
202
202
 
203
 
def _show_locking_info(repository, branch=None, working=None, outfile=None):
 
203
def _show_locking_info(repository=None, branch=None, working=None,
 
204
        outfile=None):
204
205
    """Show locking status of working, branch and repository."""
205
 
    if (repository.get_physical_lock_status() or
 
206
    if (repository and repository.get_physical_lock_status() or
206
207
        (branch and branch.get_physical_lock_status()) or
207
208
        (working and working.get_physical_lock_status())):
208
209
        outfile.write('\n')
413
414
    if branch is not None:
414
415
        show_committers = verbose >= 2
415
416
        stats = _show_branch_stats(branch, show_committers, outfile)
416
 
    else:
 
417
    elif repository is not None:
417
418
        stats = repository.gather_stats()
418
 
    if branch is None and working is None:
 
419
    if branch is None and working is None and repository is not None:
419
420
        _show_repository_info(repository, outfile)
420
 
    _show_repository_stats(repository, stats, outfile)
 
421
    if repository is not None:
 
422
        _show_repository_stats(repository, stats, outfile)
421
423
 
422
424
 
423
425
def describe_layout(repository=None, branch=None, tree=None, control=None):