~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/pathfilter.py

  • Committer: Richard Wilbur
  • Date: 2016-02-04 19:07:28 UTC
  • mto: This revision was merged to the branch mainline in revision 6618.
  • Revision ID: richard.wilbur@gmail.com-20160204190728-p0zvfii6zase0fw7
Update COPYING.txt from the original http://www.gnu.org/licenses/gpl-2.0.txt  (Only differences were in whitespace.)  Thanks to Petr Stodulka for pointing out the discrepancy.

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 
17
17
"""A transport decorator that filters all paths that are passed to it."""
18
18
 
 
19
from __future__ import absolute_import
 
20
 
 
21
from bzrlib import urlutils
19
22
 
20
23
from bzrlib.transport import (
21
 
    get_transport,
22
24
    register_transport,
23
25
    Server,
24
26
    Transport,
82
84
        self.scheme = self.server.scheme
83
85
 
84
86
    def _relpath_from_server_root(self, relpath):
85
 
        unfiltered_path = self._combine_paths(self.base_path, relpath)
 
87
        unfiltered_path = urlutils.URL._combine_paths(self.base_path, relpath)
86
88
        if not unfiltered_path.startswith('/'):
87
89
            raise ValueError(unfiltered_path)
88
90
        return unfiltered_path[1:]