[darcs-users] Apparent revert bug
Scott L. Burson
Gyro at zeta-soft.com
Fri Aug 20 08:16:50 UTC 2004
Hi,
Well, it looks like I've found my first bug already :-)
I'm using 0.9.23. (Should I go ahead and try 1.0.0rc1?)
I have a tree that looks like this:
src/
src/linux/
src/common/
src/build/
with more stuff under `linux', `common', and `build'. I did:
% darcs initialize
% darcs add src
% darcs add --recursive src/linux
% darcs add --recursive src/common
% cd src/linux
% [created file `foo']
% darcs add foo
[changed my mind]
% darcs revert foo
[this took a while]
% cd ../..
% darcs add build
Yikes, pending has conflicts!
Since I hadn't recorded anything yet, I renamed `_darcs' and started over.
After adding `src/linux' and `src/common', I looked at
`_darcs/patches/pending'. It appears that the `darcs revert' operation the
first time around destroyed the ordering of this file, because all the
`addir' lines were at the end (and `addir ./src' was last). A missing
list-reverse operation somewhere, no doubt :-)
-- Scott
More information about the darcs-users
mailing list