~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/pathfilter.py

  • Committer: Patch Queue Manager
  • Date: 2016-01-15 09:21:49 UTC
  • mfrom: (6606.2.1 autodoc-unicode)
  • Revision ID: pqm@pqm.ubuntu.com-20160115092149-z5f4sfq3jvaz0enb
(vila) Fix autodoc runner when LANG=C. (Jelmer Vernooij)

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:]