Renaming a branch from inside the branch crashes bzr
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Bazaar |
Confirmed
|
Low
|
Unassigned |
Bug Description
From inside the current directory, I was trying to rename the branch (this was the highest-level directory in the branch). It crashed bzr. I can live with bzr not able to rename it, but it shouldn't crash.
mypath$ bzr mv .. HFSP
gives the following error
bzr: ERROR: exceptions.
Traceback (most recent call last):
File "/home/
return run_bzr(argv)
File "/home/
ret = run(*run_argv)
File "/home/
return self.run(
File "/home/
self._run(tree, names_list, rel_names, after)
File "/home/
tree.
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
WorkingTree
File "/home/
return unbound(self, *args, **kwargs)
File "/home/
from_tail = splitpath(
IndexError: list index out of range
bzr 1.12 on python 2.5.1 (linux2)
arguments: ['/home/
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_GB.UTF-8'
plugins:
launchpad /home/polani/
netrc_
svn /home/polani/
*** Bazaar has encountered an internal error.
Please report a bug at https:/
including this traceback, and a description of what you
were doing when the error occurred.
I can reproduce it with more or less the following:
bzr init /tmp/branch
cd /tmp/branch
bzr mv .. HFSP
bzr: ERROR: Not a branch: "/tmp/".
bzr mv . HFSP IndexError: list index out of range
bzr: ERROR: exceptions.
Traceback (most recent call last): projects/ bzr/bzr. repo/bzr. dev/bzrlib/ commands. py", line 727, in exception_ to_return_ code projects/ bzr/bzr. repo/bzr. dev/bzrlib/ commands. py", line 922, in run_bzr projects/ bzr/bzr. repo/bzr. dev/bzrlib/ commands. py", line 559, in run_argv_aliases **all_cmd_ args) projects/ bzr/bzr. repo/bzr. dev/bzrlib/ builtins. py", line 743, in run projects/ bzr/bzr. repo/bzr. dev/bzrlib/ builtins. py", line 836, in _run rename_ one(src, dest, after=after) projects/ bzr/bzr. repo/bzr. dev/bzrlib/ mutabletree. py", line 52, in tree_write_locked projects/ bzr/bzr. repo/bzr. dev/bzrlib/ workingtree_ 4.py", line 1266, in rename_one .rename_ one(self, from_rel, to_rel, after) projects/ bzr/bzr. repo/bzr. dev/bzrlib/ mutabletree. py", line 52, in tree_write_locked projects/ bzr/bzr. repo/bzr. dev/bzrlib/ workingtree. py", line 1462, in rename_one from_rel) [-1]
File "/stuph/
return the_callable(*args, **kwargs)
File "/stuph/
ret = run(*run_argv)
File "/stuph/
return self.run(
File "/stuph/
self._run(tree, names_list, rel_names, after)
File "/stuph/
tree.
File "/stuph/
return unbound(self, *args, **kwargs)
File "/stuph/
WorkingTree
File "/stuph/
return unbound(self, *args, **kwargs)
File "/stuph/
from_tail = splitpath(
IndexError: list index out of range
bzr 1.14dev on python 2.5.2 (linux2) .bazaar/ plugins/ authors [unknown] .bazaar/ plugins/ bisect [1.1.0.pre.0] .bazaar/ plugins/ bookmarks [unknown] and_update /home/amanica/ .bazaar/ plugins/ bzr_push_ and_update [0.2dev] .bazaar/ plugins/ bzrtools [1.13] .bazaar/ plugins/ difftools [unknown] .bazaar/ plugins/ docdiff [0.9] .bazaar/ plugins/ email [unknown]
arguments: ['/stuph/bin/bzr', 'mv', '.', 'HFSP']
encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'en_ZA.UTF-8'
plugins:
authors /home/amanica/
bisect /home/amanica/
bookmarks /home/amanica/
bzr_push_
bzrtools /home/amanica/
difftools /home/amanica/
docdiff /home/amanica/
email /home/amanica/
extcomman...