~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/builtins.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-13 12:01:34 UTC
  • mfrom: (2318.2.4 bzr.kg)
  • Revision ID: pqm@pqm.ubuntu.com-20070313120134-ddd44b75e5a2639c
Add support for status --versioned

Show diffs side-by-side

added added

removed removed

Lines of Context:
183
183
    # TODO: --no-recurse, --recurse options
184
184
    
185
185
    takes_args = ['file*']
186
 
    takes_options = ['show-ids', 'revision', 'short']
 
186
    takes_options = ['show-ids', 'revision', 'short',
 
187
                     Option('versioned', help='Only show versioned files')]
187
188
    aliases = ['st', 'stat']
188
189
 
189
190
    encoding_type = 'replace'
190
191
    
191
192
    @display_command
192
 
    def run(self, show_ids=False, file_list=None, revision=None, short=False):
 
193
    def run(self, show_ids=False, file_list=None, revision=None, short=False,
 
194
            versioned=False):
193
195
        from bzrlib.status import show_tree_status
194
196
 
195
197
        tree, file_list = tree_files(file_list)
196
198
            
197
199
        show_tree_status(tree, show_ids=show_ids,
198
200
                         specific_files=file_list, revision=revision,
199
 
                         to_file=self.outf,
200
 
                         short=short)
 
201
                         to_file=self.outf, short=short, versioned=versioned)
201
202
 
202
203
 
203
204
class cmd_cat_revision(Command):