~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/directory_service.py

  • Committer: Aaron Bentley
  • Date: 2008-06-26 06:03:36 UTC
  • mto: This revision was merged to the branch mainline in revision 3514.
  • Revision ID: aaron@aaronbentley.com-20080626060336-jawagd0ir0l6gurr
Add :push and :this

Show diffs side-by-side

added added

removed removed

Lines of Context:
58
58
class AliasDirectory(object):
59
59
    """Directory lookup for locations associated with a branch.
60
60
 
61
 
    :parent, :submit, :public, and :bound are currently supported.  On error,
62
 
    a subclass of DirectoryLookupFailure will be raised.
 
61
    :parent, :submit, :public, :push, :this,and :bound are currently
 
62
    supported.  On error, a subclass of DirectoryLookupFailure will be raised.
63
63
    """
64
64
 
65
65
    def look_up(self, name, url):
69
69
            'submit': branch.get_submit_branch,
70
70
            'public': branch.get_public_branch,
71
71
            'bound': branch.get_bound_location,
 
72
            'push': branch.get_push_location,
 
73
            'this': lambda: branch.base
72
74
        }
73
75
        try:
74
76
            method = lookups[url[1:]]