Error while renaming a directory
Maritza Mendez
martitzam at gmail.com
Wed Sep 9 23:38:52 BST 2009
On Wed, Sep 9, 2009 at 12:53 PM, Andreas Deininger <
adeininger at googlemail.com> wrote:
> Hi,
>
> I'm using bzr 1.18, my bzr repository is a standalone tree (format 1.9).
> I'm encountering the following problem, which I can reproduce:
>
> $bzr mkdir test
> $bzr rename test test.renamed
> $bzr rename test.renamed test
>
> The last command results in an error (see stacktrace below).
> Is this a known bug?
>
> Thanks
> Andreas
>
> bzr: ERROR: exceptions.IndexError: list index out of range
>
> Traceback (most recent call last):
> File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 835, in
> exception_to_return_code
> return the_callable(*args, **kwargs)
> File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 1030, in
> run_bzr
> ret = run(*run_argv)
> File "/usr/lib/python2.4/site-packages/bzrlib/commands.py", line 647, in
> run_argv_aliases
> return self.run(**all_cmd_args)
> File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 804, in
> run
> self._run(tree, names_list, rel_names, after)
> File "/usr/lib/python2.4/site-packages/bzrlib/builtins.py", line 897, in
> _run
> tree.rename_one(src, dest, after=after)
> File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 52,
> in tree_write_locked
> return unbound(self, *args, **kwargs)
> File "/usr/lib/python2.4/site-packages/bzrlib/workingtree_4.py", line
> 1245, in rename_one
> WorkingTree.rename_one(self, from_rel, to_rel, after)
> File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 52,
> in tree_write_locked
> return unbound(self, *args, **kwargs)
> File "/usr/lib/python2.4/site-packages/bzrlib/workingtree.py", line 1530,
> in rename_one
> self._write_inventory(inv)
> File "/usr/lib/python2.4/site-packages/bzrlib/mutabletree.py", line 52,
> in tree_write_locked
> return unbound(self, *args, **kwargs)
> File "/usr/lib/python2.4/site-packages/bzrlib/workingtree_4.py", line
> 1270, in _write_inventory
> self.current_dirstate().set_state_from_inventory(inv)
> File "/usr/lib/python2.4/site-packages/bzrlib/dirstate.py", line 2629, in
> set_state_from_inventory
> fullscan=True)
> File "/usr/lib/python2.4/site-packages/bzrlib/dirstate.py", line 2797, in
> update_minimal
> other_key = list(existing_keys)[0]
> IndexError: list index out of range
>
> bzr 1.18 on python 2.4.4 (linux2)
> arguments: ['/usr/bin/bzr', 'rename', 'yourdir/', 'mydir']
> encoding: 'UTF-8', fsenc: 'UTF-8', lang: 'de_DE.UTF-8'
> plugins:
> bzrtools
> /usr/lib/python2.4/site-packages/bzrlib/plugins/bzrtools [1.16]
> explorer
> /usr/lib/python2.4/site-packages/bzrlib/plugins/explorer [0.4]
> gtk /usr/lib/python2.4/site-packages/bzrlib/plugins/gtk
> [0.95.0.final.1]
> launchpad
> /usr/lib/python2.4/site-packages/bzrlib/plugins/launchpad [1.18]
> multiparent
> /usr/lib/python2.4/site-packages/bzrlib/plugins/multiparent.py [unknown]
> netrc_credential_store
> /usr/lib/python2.4/site-packages/bzrlib/plugins/netrc_credential_store
> [1.18]
> qbzr /usr/lib/python2.4/site-packages/bzrlib/plugins/qbzr
> [0.11]
> *** Bazaar has encountered an internal error.
> Please report a bug at https://bugs.launchpad.net/bzr/+filebug
> including this traceback, and a description of what you
> were doing when the error occurred.
>
That's interesting. I just ran your example using bzr 1.18 on Windows, with
a freshly created 'bzr init --1.9' and your example ran perfectly with no
problems. I am using python 2.5.4 whereas you seem to be using 2.4 -- not
sure if that matters here.
~M
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ubuntu.com/archives/bazaar/attachments/20090909/74cf2a9f/attachment-0002.htm
More information about the bazaar
mailing list