~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/info.py

  • Committer: Aaron Bentley
  • Date: 2007-05-18 11:56:53 UTC
  • mto: This revision was merged to the branch mainline in revision 2528.
  • Revision ID: aaron.bentley@utoronto.ca-20070518115653-j8c55wztz4osur1c
Update deprecation warnings to 0.17

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
                           NoRepositoryPresent, NotLocalUrl)
30
30
from bzrlib.missing import find_unmerged
31
31
from bzrlib.symbol_versioning import (deprecated_function,
32
 
        zero_eight, zero_sixteen)
 
32
        zero_eight, zero_seventeen)
33
33
 
34
34
 
35
35
def plural(n, base='', pl=None):
264
264
    if 'size' in stats:
265
265
        print '  %8d KiB' % (stats['size']/1024)
266
266
 
267
 
 
268
267
def show_bzrdir_info(a_bzrdir, verbose=False):
269
268
    """Output to stdout the 'info' for a_bzrdir."""
270
269
    try:
423
422
    return show_bzrdir_info(b.bzrdir)
424
423
 
425
424
 
426
 
@deprecated_function(zero_sixteen)
 
425
@deprecated_function(zero_seventeen)
427
426
def show_tree_info(working, verbose):
428
427
    """Output to stdout the 'info' for working."""
429
428
    branch = working.branch
432
431
    show_component_info(control, repository, branch, working, verbose)
433
432
 
434
433
 
435
 
@deprecated_function(zero_sixteen)
 
434
@deprecated_function(zero_seventeen)
436
435
def show_branch_info(branch, verbose):
437
436
    """Output to stdout the 'info' for branch."""
438
437
    repository = branch.repository
440
439
    show_component_info(control, repository, branch, verbose=verbose)
441
440
 
442
441
 
443
 
@deprecated_function(zero_sixteen)
 
442
@deprecated_function(zero_seventeen)
444
443
def show_repository_info(repository, verbose):
445
444
    """Output to stdout the 'info' for repository."""
446
445
    control = repository.bzrdir