~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/store/__init__.py

First cut at pluralised VersionedFiles. Some rather massive API incompatabilities, primarily because of the difficulty of coherence among competing stores.

Show diffs side-by-side

added added

removed removed

Lines of Context:
267
267
    def _iter_files_recursive(self):
268
268
        """Iterate through the files in the transport."""
269
269
        for quoted_relpath in self._transport.iter_files_recursive():
270
 
            # transport iterator always returns quoted paths, regardless of
271
 
            # escaping
272
 
            yield urllib.unquote(quoted_relpath)
 
270
            yield quoted_relpath
273
271
 
274
272
    def __iter__(self):
275
273
        for relpath in self._iter_files_recursive():
298
296
        else:
299
297
            suffixes = []
300
298
        path = self._mapper.map((fileid,))
301
 
        full_path = u'.'.join([path] + suffixes)
302
 
        return urlutils.escape(full_path)
 
299
        full_path = '.'.join([path] + suffixes)
 
300
        return full_path
303
301
 
304
302
    def __repr__(self):
305
303
        if self._transport is None: