[darcs-users] unrecord causes deleted files to be remembered
Jamie Webb
j at jmawebb.cjb.net
Fri Sep 10 00:31:33 UTC 2004
On Thu, Sep 09, 2004 at 06:52:05PM -0400, Andrew Pimlott wrote:
> The real problem is this, on top of my previous transcript:
>
> > % rm this
> > % darcs whatsnew -l -s
> > R ./this
>
> % darcs whatsnew
> {
> addfile ./this
> rmfile ./this
>
> }
>
> ie, the addfile + rmfile is incorrectly summarized as "R".
Seems like the correct solution is to have an addfile and subsequent
rmfile within a single patch 'annihilate'. That means that the correct
way to undo an add is just to remove the file again. It corresponds to
what happens if you edit a file and then change it back.
-- Jamie Webb
More information about the darcs-users
mailing list