~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/branch.py

  • Committer: Martin Pool
  • Date: 2005-07-11 07:05:34 UTC
  • Revision ID: mbp@sourcefrog.net-20050711070534-5227696ab167ccde
- merge aaron's append_multiple.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
549
549
        return self.working_tree().unknowns()
550
550
 
551
551
 
552
 
    def append_revision(self, revision_id):
 
552
    def append_revision(self, *revision_ids):
553
553
        from bzrlib.atomicfile import AtomicFile
554
554
 
555
 
        mutter("add {%s} to revision-history" % revision_id)
556
 
        rev_history = self.revision_history() + [revision_id]
 
555
        for revision_id in revision_ids:
 
556
            mutter("add {%s} to revision-history" % revision_id)
 
557
 
 
558
        rev_history = self.revision_history()
 
559
        rev_history.extend(revision_ids)
557
560
 
558
561
        f = AtomicFile(self.controlfilename('revision-history'))
559
562
        try: