~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-11-08 11:35:49 UTC
  • mfrom: (5531.1.3 662509-ignore-empty)
  • Revision ID: pqm@pqm.ubuntu.com-20101108113549-e4mhhq2fe1i0etbf
(vila) Add an option to accept any output from commands in shell-like tests.
 (Vincent Ladeuil)

Show diffs side-by-side

added added

removed removed

Lines of Context:
450
450
    manager = get_shelf_manager()
451
451
    shelves = manager.active_shelves()
452
452
    if shelves:
453
 
        singular = '%d shelf exists. '
454
 
        plural = '%d shelves exist. '
455
 
        if len(shelves) == 1:
456
 
            fmt = singular
457
 
        else:
458
 
            fmt = plural
459
 
        params.to_file.write(fmt % len(shelves))
460
 
        params.to_file.write('See "bzr shelve --list" for details.\n')
 
453
        params.to_file.write('%d shelves exist. '
 
454
            'See "bzr shelve --list" for details.\n' % len(shelves))
461
455
 
462
456
 
463
457
hooks = StatusHooks()