~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-05-12 00:54:18 UTC
  • Revision ID: mbp@sourcefrog.net-20050512005418-3483f28ed7ecf7d7
- Write out statcache if any files are updated, even 
  if their content has not changed

Show diffs side-by-side

added added

removed removed

Lines of Context:
238
238
            b = Branch('.', lock_mode='r')
239
239
        import status
240
240
        status.show_status(b, show_unchanged=all, show_ids=show_ids,
241
 
                           file_list=file_list)
 
241
                           specific_files=file_list)
242
242
 
243
243
 
244
244
class cmd_cat_revision(Command):
494
494
    def run(self, revision=None, file_list=None):
495
495
        from bzrlib.diff import show_diff
496
496
    
497
 
        show_diff(Branch('.'), revision, file_list)
 
497
        show_diff(Branch('.'), revision, specific_files=file_list)
498
498
 
499
499
 
500
500
        
784
784
    aliases = ['ci', 'checkin']
785
785
 
786
786
    def run(self, message=None, file=None, verbose=False):
 
787
        from bzrlib.commit import commit
 
788
 
787
789
        ## Warning: shadows builtin file()
788
790
        if not message and not file:
789
791
            raise BzrCommandError("please specify a commit message",
795
797
            import codecs
796
798
            message = codecs.open(file, 'rt', bzrlib.user_encoding).read()
797
799
 
798
 
        Branch('.').commit(message, verbose=verbose)
 
800
        b = Branch('.')
 
801
        commit(b, message, verbose=verbose)
799
802
 
800
803
 
801
804
class cmd_check(Command):