from fullermd in the dup bug - and fixed by my branch.
This isn't actually 'renaming it back', it's another ordering issue. Naming to a lexically earlier name is what fails.
Example reproduction script (tested on bzr.dev and 1.18):
#!/bin/sh -x bzr="/usr/local/bin/bzr --no-plugins --no-aliases"
${bzr} init A ( # Setup cd A ; ${bzr} mkdir a ; ${bzr} ci -m '1' ;
# Add it ${bzr} mkdir a/b ;
# Both work ${bzr} mv a/b a/c ; ${bzr} mv a/c a/d ;
# This fails ${bzr} mv a/d a/a ;
# Show that we lost it. ${bzr} stat )
from fullermd in the dup bug - and fixed by my branch.
This isn't actually 'renaming it back', it's another ordering issue. Naming to a lexically earlier name is what fails.
Example reproduction script (tested on bzr.dev and 1.18):
#!/bin/sh -x local/bin/ bzr --no-plugins --no-aliases"
bzr="/usr/
${bzr} init A
(
# Setup
cd A ;
${bzr} mkdir a ;
${bzr} ci -m '1' ;
# Add it
${bzr} mkdir a/b ;
# Both work
${bzr} mv a/b a/c ;
${bzr} mv a/c a/d ;
# This fails
${bzr} mv a/d a/a ;
# Show that we lost it.
${bzr} stat
)