1838
1838
if last_rev != self.branch.last_revision():
1839
1839
# merge tree state up to new branch tip.
1840
1840
basis = self.basis_tree()
1849
1853
# TODO - dedup parents list with things merged by pull ?
1850
1854
# reuse the tree we've updated to to set the basis:
1851
1855
parent_trees = [(self.branch.last_revision(), to_tree)]