[darcs-users] Re: remove and obliterate

Matthias Fischmann fis at wiwi.hu-berlin.de
Thu Nov 23 10:09:06 UTC 2006


On Tue, Nov 21, 2006 at 06:59:44PM +0100, Tommy Pettersson wrote:
> To: darcs-users at darcs.net
> From: Tommy Pettersson <ptp at lysator.liu.se>
> Date: Tue, 21 Nov 2006 18:59:44 +0100
> Subject: Re: [darcs-users] Re: remove and obliterate
> 
> 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.

i think that is what i meant to say, but failed.  thanks for the
clarification.  -matthias




More information about the darcs-users mailing list