~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-11 05:55:27 UTC
  • Revision ID: mbp@sourcefrog.net-20050511055527-d960f4d6989fc47c
- Move show_status() out of Branch into a new function in 
  bzrlib.status
- New option --show-ids for status command
- Refactor TreeDelta.show()
  and add optional support for showing unmodified files
- Changed output format for status command

Show diffs side-by-side

added added

removed removed

Lines of Context:
194
194
    missing, in which case the old name is shown.
195
195
    """
196
196
    takes_args = ['file*']
197
 
    takes_options = ['all']
 
197
    takes_options = ['all', 'show-ids']
198
198
    aliases = ['st', 'stat']
199
199
    
200
 
    def run(self, all=False, file_list=None):
 
200
    def run(self, all=False, show_ids=False, file_list=None):
201
201
        b = Branch('.', lock_mode='r')
202
 
        b.show_status(show_all=all, file_list=file_list)
 
202
        import status
 
203
        status.show_status(b, show_unchanged=all, show_ids=show_ids,
 
204
                           file_list=file_list)
203
205
 
204
206
 
205
207
class cmd_cat_revision(Command):