/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/transport/__init__.py

  • Committer: Jonathan Lange
  • Date: 2009-12-09 09:20:42 UTC
  • mfrom: (4881 +trunk)
  • mto: This revision was merged to the branch mainline in revision 4907.
  • Revision ID: jml@canonical.com-20091209092042-s2zgqcf8f39yzxpj
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
                modules.add(factory._module_name)
91
91
            else:
92
92
                modules.add(factory._obj.__module__)
93
 
    # Add chroot directly, because there is no handler registered for it.
 
93
    # Add chroot and pathfilter directly, because there is no handler
 
94
    # registered for it.
94
95
    modules.add('bzrlib.transport.chroot')
 
96
    modules.add('bzrlib.transport.pathfilter')
95
97
    result = list(modules)
96
98
    result.sort()
97
99
    return result
106
108
    register_transport_provider( ) ( and the "lazy" variant )
107
109
 
108
110
    This is needed because:
109
 
    a) a single provider can support multple protcol ( like the ftp
 
111
    a) a single provider can support multiple protocols ( like the ftp
110
112
    provider which supports both the ftp:// and the aftp:// protocols )
111
113
    b) a single protocol can have multiple providers ( like the http://
112
114
    protocol which is supported by both the urllib and pycurl provider )
846
848
        """Get a list of file-like objects, one for each entry in relpaths.
847
849
 
848
850
        :param relpaths: A list of relative paths.
849
 
        :param pb:  An optional ProgressBar for indicating percent done.
 
851
        :param pb:  An optional ProgressTask for indicating percent done.
850
852
        :return: A list or generator of file-like objects
851
853
        """
852
854
        # TODO: Consider having this actually buffer the requests,
1015
1017
        the supplied location.
1016
1018
 
1017
1019
        :param files: A set of (path, f) entries
1018
 
        :param pb:  An optional ProgressBar for indicating percent done.
 
1020
        :param pb:  An optional ProgressTask for indicating percent done.
1019
1021
        """
1020
1022
        return self._iterate_over(files, self.append_file, pb, 'append', expand=True)
1021
1023
 
1390
1392
            netloc = '%s@%s' % (urllib.quote(user), netloc)
1391
1393
        if port is not None:
1392
1394
            netloc = '%s:%d' % (netloc, port)
1393
 
        path = urllib.quote(path)
 
1395
        path = urlutils.escape(path)
1394
1396
        return urlparse.urlunparse((scheme, netloc, path, None, None, None))
1395
1397
 
1396
1398
    def relpath(self, abspath):