/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/workingtree.py

  • Committer: Patch Queue Manager
  • Date: 2011-11-08 13:46:27 UTC
  • mfrom: (6243.1.1 workingtree-pull-null)
  • Revision ID: pqm@pqm.ubuntu.com-20111108134627-frw63i8mjehg2lic
(jelmer) Fix WorkingTree.pull(stop_revision='null:',
 overwrite=True). (Jelmer Vernooij)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1004
1004
                                show_base=show_base)
1005
1005
                    basis_root_id = basis_tree.get_root_id()
1006
1006
                    new_root_id = new_basis_tree.get_root_id()
1007
 
                    if basis_root_id != new_root_id:
 
1007
                    if new_root_id is not None and basis_root_id != new_root_id:
1008
1008
                        self.set_root_id(new_root_id)
1009
1009
                finally:
1010
1010
                    basis_tree.unlock()
1011
1011
                # TODO - dedup parents list with things merged by pull ?
1012
1012
                # reuse the revisiontree we merged against to set the new
1013
1013
                # tree data.
1014
 
                parent_trees = [(self.branch.last_revision(), new_basis_tree)]
 
1014
                parent_trees = []
 
1015
                if self.branch.last_revision() != _mod_revision.NULL_REVISION:
 
1016
                    parent_trees.append(
 
1017
                        (self.branch.last_revision(), new_basis_tree))
1015
1018
                # we have to pull the merge trees out again, because
1016
1019
                # merge_inner has set the ids. - this corner is not yet
1017
1020
                # layered well enough to prevent double handling.