/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

(robertc) Add MemoryTree and TreeBuilder test helpers. Also test behavior of transport.has('/') which caused failures in this when merging, and as a result cleanup the sftp path normalisation logic.

Show diffs side-by-side

added added

removed removed

Lines of Context:
227
227
        relpath = urlutils.unescape(relpath)
228
228
        if relpath.find('..') != -1:
229
229
            raise AssertionError('relpath contains ..')
 
230
        if relpath == '':
 
231
            return '/'
230
232
        if relpath[0] == '/':
231
233
            return relpath
232
234
        if relpath == '.':