~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

(jelmer) Print the number of colocated branches in 'bzr info'. (Jelmer
 Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
        outfile.writelines(locs.get_lines())
160
160
 
161
161
 
 
162
def _show_control_dir_info(control, outfile):
 
163
    """Show control dir information."""
 
164
    if control._format.colocated_branches:
 
165
        outfile.write('\n')
 
166
        outfile.write('Control directory:\n')
 
167
        outfile.write('         %d branches\n' % len(control.list_branches()))
 
168
 
 
169
 
162
170
def _show_format_info(control=None, repository=None, branch=None,
163
171
                      working=None, outfile=None):
164
172
    """Show known formats for control, working, branch and repository."""
377
385
        return
378
386
    _show_format_info(control, repository, branch, working, outfile)
379
387
    _show_locking_info(repository, branch, working, outfile)
 
388
    _show_control_dir_info(control, outfile)
380
389
    if branch is not None:
381
390
        _show_missing_revisions_branch(branch, outfile)
382
391
    if working is not None: