~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/urlutils.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:
129
129
        if m:
130
130
            # Absolute URL
131
131
            scheme = m.group('scheme')
 
132
            # this skips .. normalisation, making http://host/../../..
 
133
            # be rather strange.
132
134
            path = m.group('path').split('/')
133
135
        else:
134
136
            for chunk in arg.split('/'):