~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/transport/memory.py

Merge bzr.dev (and fix NEWS)

Show diffs side-by-side

added added

removed removed

Lines of Context:
154
154
    def iter_files_recursive(self):
155
155
        for file in self._files:
156
156
            if file.startswith(self._cwd):
157
 
                yield file[len(self._cwd):]
 
157
                yield urlutils.escape(file[len(self._cwd):])
158
158
    
159
159
    def list_dir(self, relpath):
160
160
        """See Transport.list_dir()."""
173
173
                len(path) > len(_abspath) and
174
174
                path[len(_abspath)] == '/'):
175
175
                result.append(path[len(_abspath) + 1:])
176
 
        return result
 
176
        return map(urlutils.escape, result)
177
177
 
178
178
    def rename(self, rel_from, rel_to):
179
179
        """Rename a file or directory; fail if the destination exists"""