~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transform.py

  • Committer: Vincent Ladeuil
  • Date: 2010-11-07 13:38:56 UTC
  • mfrom: (5050.45.8 2.2)
  • mto: This revision was merged to the branch mainline in revision 5531.
  • Revision ID: v.ladeuil+lp@free.fr-20101107133856-21rzvgfl40q4wxhd
Merge 2.2 into trunk including fix for bug #646961

Show diffs side-by-side

added added

removed removed

Lines of Context:
666
666
        if (self._new_name, self._new_parent) == ({}, {}):
667
667
            return conflicts
668
668
        for children in by_parent.itervalues():
669
 
            name_ids = [(self.final_name(t), t) for t in children]
670
 
            if not self._case_sensitive_target:
671
 
                name_ids = [(n.lower(), t) for n, t in name_ids]
 
669
            name_ids = []
 
670
            for child_tid in children:
 
671
                name = self.final_name(child_tid)
 
672
                if name is not None:
 
673
                    # Keep children only if they still exist in the end
 
674
                    if not self._case_sensitive_target:
 
675
                        name = name.lower()
 
676
                    name_ids.append((name, child_tid))
672
677
            name_ids.sort()
673
678
            last_name = None
674
679
            last_trans_id = None