IndexError on windows from any operation that opens a transport at root drive
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Fix Released
|
Critical
|
Martin Packman |
Bug Description
Many basic bzr operations are broken on bzr.dev on windows, for instance doing a local branch:
Traceback (most recent call last):
File "bzrlib\
return the_callable(*args, **kwargs)
File "bzrlib\
ret = run(*run_argv)
File "bzrlib\
return self.run(
File "bzrlib\
return self._operation
File "bzrlib\
self.cleanups, self.func, *args, **kwargs)
File "bzrlib\
result = func(*args, **kwargs)
File "bzrlib\
result = func(*args, **kwargs)
File "bzrlib\
show_
File "bzrlib\bzrdir.py", line 874, in open_containing
transport = _mod_transport.
File "bzrlib\
return get_transport_
File "bzrlib\
transport, last_err = _try_transport_
File "bzrlib\
return factory.
File "bzrlib\
super(
File "bzrlib\
base.
File "bzrlib\
(base_url, subsegments) = split_segment_
File "bzrlib\
(parent_url, child_dir) = split(url)
File "bzrlib\
url_base, path = _win32_
File "bzrlib\
if len(path) < 3 or path[2] not in ':|' or path[3] != '/':
IndexError: string index out of range
Was looking for problems in the bzr-git path handling code, but this isn't related to plugins.
Related branches
- Jelmer Vernooij (community): Approve
-
Diff: 58 lines (+12/-3)4 files modifiedbzrlib/tests/test_urlutils.py (+6/-0)
bzrlib/transport/__init__.py (+1/-2)
bzrlib/urlutils.py (+1/-1)
doc/en/release-notes/bzr-2.5.txt (+4/-0)
Changed in bzr: | |
milestone: | none → 2.5b1 |
The index file *always* contains posix paths, even on Windows so just using bzrlib.osutils won't be sufficient. We'll need translations of paths.