~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/conflicts.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2011-08-15 13:49:38 UTC
  • mfrom: (6060.3.1 fix-last-revno-args)
  • Revision ID: pqm@pqm.ubuntu.com-20110815134938-4fuo63g4v2hj8jdt
(jelmer) Cope with the localhost having the name 'localhost' when running
 the test suite. (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
507
507
        if path_to_create is not None:
508
508
            tid = tt.trans_id_tree_path(path_to_create)
509
509
            transform.create_from_tree(
510
 
                tt, tt.trans_id_tree_path(path_to_create),
511
 
                self._revision_tree(tt._tree, revid), file_id)
 
510
                tt, tid, self._revision_tree(tt._tree, revid), file_id)
512
511
            tt.version_file(file_id, tid)
513
 
 
 
512
        else:
 
513
            tid = tt.trans_id_file_id(file_id)
514
514
        # Adjust the path for the retained file id
515
 
        tid = tt.trans_id_file_id(file_id)
516
515
        parent_tid = tt.get_tree_parent(tid)
517
516
        tt.adjust_path(osutils.basename(path), parent_tid, tid)
518
517
        tt.apply()