74
74
branch_aliases = registry.Registry()
75
75
branch_aliases.register('parent', lambda b: b.get_parent(),
76
help="the parent of this branch")
76
help="The parent of this branch.")
77
77
branch_aliases.register('submit', lambda b: b.get_submit_branch(),
78
help="the submit branch for this branch")
78
help="The submit branch for this branch.")
79
79
branch_aliases.register('public', lambda b: b.get_public_branch(),
80
help="the public location of this branch")
80
help="The public location of this branch.")
81
81
branch_aliases.register('bound', lambda b: b.get_bound_location(),
82
help="the branch this branch is bound to, for bound branches")
82
help="The branch this branch is bound to, for bound branches.")
83
83
branch_aliases.register('push', lambda b: b.get_push_location(),
84
help="the saved location used for `bzr push` with no arguments")
84
help="The saved location used for `bzr push` with no arguments.")
85
85
branch_aliases.register('this', lambda b: b.base,
88
88
def look_up(self, name, url):
89
89
branch = _mod_branch.Branch.open_containing('.')[0]