39
39
_update(tree, source_repository)
43
43
"""Check that there are no outstanding pending merges before switching.
45
45
:param control: BzrDir of the branch to check
48
48
tree = control.open_workingtree()
52
54
# XXX: Should the tree be locked for get_parent_ids?
53
55
existing_pending_merges = tree.get_parent_ids()[1:]
54
56
if len(existing_pending_merges) > 0: