Comment 8 for bug 430672

Revision history for this message
Andrew Svetlov (andrew-svetlov) wrote : Re: [Bug 430672] Re: Crash when renaming a directory

I will try your way on workstartion Monday.
It's not big bug for me but if my report can help to make bazaar
better - why not.

On Fri, Sep 25, 2009 at 6:07 PM, John A Meinel <email address hidden> wrote:
> Note that it doesn't matter if there are other files /dirs in the
> directory, but it only triggers on a newly added directory. If you do:
>
> bzr mkdir a/a
> bzr mv a/a/ a/d
> bzr commit -m 2
> bzr mv a/d a/a
>
> it works just fine.
>
> So it is a bug in how we handle entries that are 'added' and renaming
> them to an earlier path.
>
> --
> Crash when renaming a directory
> https://bugs.launchpad.net/bugs/430672
> You received this bug notification because you are a direct subscriber
> of a duplicate bug.
>
> Status in Bazaar Version Control System: Confirmed
> Status in Bazaar 2.0 series: Confirmed
>
> Bug description:
> I renamed a directory and attempted to rename it back, triggering a crash.
>
> $ bzr st
> added:
>  lib/lp/services/memcached/
>  lib/lp/services/memcached/__init__.py
>  lib/lp/services/memcached/interfaces.py
> modified:
>  lib/canonical/launchpad/scripts/runlaunchpad.py
>
> $ bzr mv lib/lp/services/memcached lib/lp/services/memcache
> bzr: ERROR: exceptions.IndexError: list index out of range
>
> *** Bazaar has encountered an internal error.  This probably indicates a
>    bug in Bazaar.  You can help us fix it by filing a bug report at
>        https://bugs.launchpad.net/bzr/+filebug
>    attaching the crash file
>        /home/stub/.cache/crash/bzr-20090916114005-29872.crash
>    and including a description of the problem.
>
>    The crash file is plain text and you can inspect or edit it to remove
>    private information.
>
> $ bzr --version
> Bazaar (bzr) 2.0rc2
>  Python interpreter: /usr/bin/python 2.6.2
>  Python standard library: /usr/lib/python2.6
>  Platform: Linux-2.6.28-15-generic-x86_64-with-Ubuntu-9.04-jaunty
>  bzrlib: /usr/lib/python2.6/dist-packages/bzrlib
>  Bazaar configuration: /home/stub/.bazaar
>  Bazaar log file: /home/stub/.bzr.log
>
> Copyright 2005, 2006, 2007, 2008, 2009 Canonical Ltd.
> http://bazaar-vcs.org/
>
> bzr comes with ABSOLUTELY NO WARRANTY.  bzr is free software, and
> you may use, modify and redistribute it under the terms of the GNU
> General Public License version 2 or later.
>