543
541
print "Using last location: %s" % stored_loc
546
544
from bzrlib.branch import DivergedBranches
547
545
br_from = find_branch(location)
549
547
old_revno = br_to.revno()
556
550
br_to.update_revisions(br_from)
558
552
raise BzrCommandError("These branches have diverged."
561
555
merge(('.', -1), ('.', old_revno), check_clean=False)
562
556
if location != stored_loc:
563
557
br_to.put_controlfile('x-pull', location+'\n')
569
565
class cmd_branch(Command):