/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/memory.py

  • Committer: Carl Friedrich Bolz
  • Date: 2006-09-06 21:17:22 UTC
  • mfrom: (1977 +trunk)
  • mto: This revision was merged to the branch mainline in revision 2026.
  • Revision ID: cfbolz@gmx.de-20060906211722-b04f9c3ad1f53ef1
Merge bzr.dev.

Show diffs side-by-side

added added

removed removed

Lines of Context:
117
117
    def has(self, relpath):
118
118
        """See Transport.has()."""
119
119
        _abspath = self._abspath(relpath)
120
 
        return _abspath in self._files or _abspath in self._dirs
 
120
        return (_abspath in self._files) or (_abspath in self._dirs)
121
121
 
122
122
    def delete(self, relpath):
123
123
        """See Transport.delete()."""
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"""