~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-03-27 06:12:05 UTC
  • mfrom: (2376.1.1 integration)
  • Revision ID: pqm@pqm.ubuntu.com-20070327061205-24256d9f15f6757d
(robertc) Merge 0.8 API removal cleanup.

Show diffs side-by-side

added added

removed removed

Lines of Context:
159
159
            self.config = None
160
160
        
161
161
    def commit(self,
162
 
               branch=DEPRECATED_PARAMETER, message=None,
 
162
               message=None,
163
163
               timestamp=None,
164
164
               timezone=None,
165
165
               committer=None,
177
177
               recursive='down'):
178
178
        """Commit working copy as a new revision.
179
179
 
180
 
        branch -- the deprecated branch to commit to. New callers should pass in 
181
 
                  working_tree instead
182
 
 
183
180
        message -- the commit message (it or message_callback is required)
184
181
 
185
182
        timestamp -- if not None, seconds-since-epoch for a
206
203
        """
207
204
        mutter('preparing to commit')
208
205
 
209
 
        if deprecated_passed(branch):
210
 
            symbol_versioning.warn("Commit.commit (branch, ...): The branch parameter is "
211
 
                 "deprecated as of bzr 0.8. Please use working_tree= instead.",
212
 
                 DeprecationWarning, stacklevel=2)
213
 
            self.branch = branch
214
 
            self.work_tree = self.branch.bzrdir.open_workingtree()
215
 
        elif working_tree is None:
216
 
            raise BzrError("One of branch and working_tree must be passed into commit().")
 
206
        if working_tree is None:
 
207
            raise BzrError("working_tree must be passed into commit().")
217
208
        else:
218
209
            self.work_tree = working_tree
219
210
            self.branch = self.work_tree.branch