[darcs-users] Re: remove and obliterate

Tommy Pettersson ptp at lysator.liu.se
Tue Nov 21 17:59:44 UTC 2006


On Tue, Nov 21, 2006 at 10:37:36AM +0100, Matthias Fischmann wrote:
> > $ rm file && darcs record
> 
> if i recreate the file, darcs will find it and keep track of the
> changes in the new file without having to be told.

> > $ darcs remove file && rm file
> 
> after recording, creating the new file will not leave any traces in
> the repo: if i want darcs to control it again, i have to add it again.

Not quite. When Record looks for changes (hunks) to record, it
sees if the file is completely removed, and constructs a rmfile
patch which it offers you to record. The Remove command just
constructs such a rmfile patch in pending, where you can later
record it, but it doesn't remove the file from your working
copy. The recorded change is the same in both cases, and if you
manually delete the file after you 'darcs remove' it, there
should be no difference at all.


-- 
Tommy Pettersson <ptp at lysator.liu.se>




More information about the darcs-users mailing list