~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/smart/bzrdir.py

  • Committer: Andrew Bennetts
  • Date: 2009-09-22 00:34:10 UTC
  • mto: This revision was merged to the branch mainline in revision 4713.
  • Revision ID: andrew.bennetts@canonical.com-20090922003410-ji9dq3vk3ld5vhkf
Give 'no' response for paths outside the root_client_path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
62
62
 
63
63
        New in 2.1.
64
64
        """
65
 
        t = self.transport_from_client_path(path)
 
65
        try:
 
66
            t = self.transport_from_client_path(path)
 
67
        except errors.PathNotChild:
 
68
            # The client is trying to ask about a path that they have no access
 
69
            # to.
 
70
            return SuccessfulSmartServerResponse(('no',))
66
71
        try:
67
72
            bd = BzrDir.open_from_transport(t)
68
73
        except errors.NotBranchError: