~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/status.py

  • Committer: Parth Malwankar
  • Date: 2010-09-17 15:15:34 UTC
  • mto: This revision was merged to the branch mainline in revision 5444.
  • Revision ID: parth.malwankar@gmail.com-20100917151534-587xpe9adve1jhw3
used active_shelves instead of creating a new function for listing shelves

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
    delta as _mod_delta,
21
21
    hooks as _mod_hooks,
22
22
    log,
23
 
    shelf,
24
23
    osutils,
25
24
    tsort,
26
25
    revision as _mod_revision,
445
444
 
446
445
    :param params: StatusHookParams.
447
446
    """
448
 
    shelves = shelf.list_shelves(params.new_tree)
 
447
    manager = params.new_tree.get_shelf_manager()
 
448
    shelves = manager.active_shelves()
449
449
    if shelves:
450
450
        params.to_file.write('%d shelves exist. '
451
451
            'See "bzr shelve --list" for details.\n' % len(shelves))