~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: 2011-02-03 07:59:47 UTC
  • mfrom: (5641.1.1 bzr.dev)
  • Revision ID: pqm@pqm.ubuntu.com-20110203075947-l52516mt7wsqryi7
(vila) Merge 2.3 into trunk including fix for lp:707075. (Max Bowsher)

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
 
        params.to_file.write('%d shelves exist. '
454
 
            'See "bzr shelve --list" for details.\n' % len(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')
455
461
 
456
462
 
457
463
hooks = StatusHooks()