1539
class cmd_missing(Command):
1540
"""What is missing in this branch relative to other branch.
1542
takes_args = ['remote?']
1543
aliases = ['mis', 'miss']
1544
# We don't have to add quiet to the list, because
1545
# unknown options are parsed as booleans
1546
takes_options = ['verbose', 'quiet']
1548
def run(self, remote=None, verbose=False, quiet=False):
1549
from bzrlib.branch import find_branch, DivergedBranches
1550
from bzrlib.errors import BzrCommandError
1551
from bzrlib.missing import get_parent, show_missing
1553
if verbose and quiet:
1554
raise BzrCommandError('Cannot pass both quiet and verbose')
1556
b = find_branch('.')
1557
parent = get_parent(b)
1560
raise BzrCommandError("No missing location known or specified.")
1563
print "Using last location: %s" % parent
1565
elif parent is None:
1566
# We only update x-pull if it did not exist, missing should not change the parent
1567
b.controlfile('x-pull', 'wb').write(remote + '\n')
1568
br_remote = find_branch(remote)
1570
return show_missing(b, br_remote, verbose=verbose, quiet=quiet)
1539
1573
class cmd_plugins(Command):
1540
1574
"""List plugins"""