~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 10:14:09 UTC
  • Revision ID: mbp@sourcefrog.net-20050511101409-25634506a9caacfd
- move commit code into its own module
- remove some doctest tests in favour of black-box tests
- specific-file parameters for diff and status now cover all
  files inside a directory

Show diffs side-by-side

added added

removed removed

Lines of Context:
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):