Bug : uncommit and deleted file

Erik de Castro Lopo erikd+bzr at mega-nerd.com
Tue May 1 08:39:55 BST 2007


Hi all,

I think I've found a little corner case bug with bzr uncomit.
Here are the set of comamnds I run:

    cd /tmp/
    mkdir test
    cd test/
    bzr init
    echo "Just a test" > a.txt
    bzr add a.txt
    bzr commit -m "Add file a.txt."
    mv a.txt b.txt   # Oops should have been "bzr mv"
    bzr commit -m "Rename a.txt to b.txt."
    bzr uncommit
    mv b.txt a.txt

Now, "bzr status" gives:

    removed:
      a.txt

I believe that since a.txt now exists, it should be a revisioned
file with a history that goes back to when it was first added.

Cheers,
Erik
-- 
-----------------------------------------------------------------
Erik de Castro Lopo
-----------------------------------------------------------------
Rule 1: Spammers lie.
Rule 2: If a spammer seems to be telling the truth, see Rule #1.



More information about the bazaar mailing list