[darcs-users] Something strange with addfile and pending??

Tommy Pettersson ptp at lysator.liu.se
Sat Jul 17 13:04:58 UTC 2004

On two occasions (with 0.9.22) have `darcs whatsnew' displayed
changes in a recently added (recorded or pulled) file as first
a hunk with the entire contents removed and then a hunk with
the exact same lines added again.

I am unsure about what precisely I did the first time.

The second time I just pulled the latest five or ten patches
for darcs itself.  Then I made a change of my own.  Then I ran
`darcs whatsnew', and in addition to the change I had made,
the new file tests/push.sh had the two hunks first removing
and then adding all its lines.  I found the "removal" as a
hunk in _darcs/patches/pending, and I guess the "adding"
was noticed by darcs from the file contents.  I removed
_darcs/patches/pending, and all strangeness was gone.

I can not reproduce this.  I pulled again from a branch
without the push test file and made the same change, but
whatsnew worked fine this time.

Has anyone else seen this strangeness?

Tommy Pettersson <ptp at lysator.liu.se>

More information about the darcs-users mailing list