~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:30:09 UTC
  • mto: (6437.23.12 2.5)
  • mto: This revision was merged to the branch mainline in revision 6473.
  • Revision ID: jelmer@samba.org-20120220133009-bl5tjcwgkqp3jdfh
Cope with repository being missing in 'bzr info'.

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')