Part of bzrlib.urlutils View In Hierarchy
| Method | __init__ | Undocumented |
| Method | __eq__ | Undocumented |
| Method | __repr__ | Undocumented |
| Class Method | from_string | Create a URL object from a string. |
| Method | __str__ | Undocumented |
| Method | clone | Return a new URL for a path relative to this URL. |
| Static Method | _combine_paths | Transform a Transport-relative path to a remote absolute path. |
| Parameters | url | URL as bytestring |
Transform a Transport-relative path to a remote absolute path.
This does not handle substitution of ~ but does handle '..' and '.' components.
Examples:
t._combine_paths('/home/sarah', 'project/foo')
=> '/home/sarah/project/foo'
t._combine_paths('/home/sarah', '../../etc')
=> '/etc'
t._combine_paths('/home/sarah', '/etc')
=> '/etc'
| Parameters | base_path | base path |
| relpath | relative url string for relative part of remote path. | |
| Returns | urlencoded string for final path. | |
| Parameters | offset | A relative path, already urlencoded |
| Returns | URL instance | |