~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/merge.py

  • Committer: Vincent Ladeuil
  • Date: 2011-07-07 11:01:00 UTC
  • mfrom: (5050.73.13 805809-no-final-path)
  • mto: This revision was merged to the branch mainline in revision 6013.
  • Revision ID: v.ladeuil+lp@free.fr-20110707110100-df1xn1phgvaowjys
Handle path conflicts involving different root-ids

Show diffs side-by-side

added added

removed removed

Lines of Context:
1635
1635
                if other_parent is None or other_name is None:
1636
1636
                    other_path = '<deleted>'
1637
1637
                else:
1638
 
                    parent_path =  fp.get_path(
1639
 
                        self.tt.trans_id_file_id(other_parent))
 
1638
                    if other_parent == self.other_tree.get_root_id():
 
1639
                        # The tree transform doesn't know about the other root,
 
1640
                        # so we special case here to avoid a NoFinalPath
 
1641
                        # exception
 
1642
                        parent_path = ''
 
1643
                    else:
 
1644
                        parent_path =  fp.get_path(
 
1645
                            self.tt.trans_id_file_id(other_parent))
1640
1646
                    other_path = osutils.pathjoin(parent_path, other_name)
1641
1647
                c = _mod_conflicts.Conflict.factory(
1642
1648
                    'path conflict', path=this_path,