~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commit.py

  • Committer: Martin Pool
  • Date: 2005-09-20 09:03:19 UTC
  • Revision ID: mbp@sourcefrog.net-20050920090319-a5ef624ab934d72d
- fix up test for merge of trees

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
# merged is already in the ancestry, and then don't record it as a
58
58
# distinct parent.
59
59
 
 
60
# TODO: If the file is newly merged but unchanged from the version it
 
61
# merges from, then it should still be reported as newly added
 
62
# relative to the basis revision.
 
63
 
60
64
 
61
65
import os
62
66
import sys
414
418
                continue
415
419
            
416
420
            file_parents = self._find_file_parents(file_id)
 
421
            mutter('parents of %s are %r', path, file_parents)
417
422
            if len(file_parents) == 1:
418
423
                parent_ie = file_parents.values()[0]
419
424
                wc_sha1 = self.work_tree.get_file_sha1(file_id)
421
426
                    # text not changed or merged
422
427
                    self._commit_old_text(file_id, parent_ie)
423
428
                    continue
424
 
 
425
 
            mutter('parents of %s are %r', path, file_parents)
426
 
 
427
429
            # file is either new, or a file merge; need to record
428
430
            # a new version
429
431
            if len(file_parents) > 1: