/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: v.ladeuil+lp at free
  • Date: 2006-11-08 07:44:30 UTC
  • mfrom: (2123 +trunk)
  • mto: (2145.1.1 keepalive)
  • mto: This revision was merged to the branch mainline in revision 2146.
  • Revision ID: v.ladeuil+lp@free.fr-20061108074430-a9c08d4a475bd97f
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
153
153
        if _abspath != '/' and _abspath not in self._dirs:
154
154
            raise NoSuchFile(relpath)
155
155
        result = []
156
 
        for path in self._files:
157
 
            if (path.startswith(_abspath) and 
158
 
                path[len(_abspath) + 1:].find('/') == -1 and
159
 
                len(path) > len(_abspath)):
160
 
                result.append(path[len(_abspath) + 1:])
161
 
        for path in self._dirs:
162
 
            if (path.startswith(_abspath) and 
163
 
                path[len(_abspath) + 1:].find('/') == -1 and
164
 
                len(path) > len(_abspath) and
165
 
                path[len(_abspath)] == '/'):
166
 
                result.append(path[len(_abspath) + 1:])
 
156
 
 
157
        if not _abspath.endswith('/'):
 
158
            _abspath += '/'
 
159
 
 
160
        for path_group in self._files, self._dirs:
 
161
            for path in path_group:
 
162
                if path.startswith(_abspath):
 
163
                    trailing = path[len(_abspath):]
 
164
                    if trailing and '/' not in trailing:
 
165
                        result.append(trailing)
167
166
        return map(urlutils.escape, result)
168
167
 
169
168
    def rename(self, rel_from, rel_to):