[darcs-users] More confusion
darcs at davidb.org
Fri May 7 15:50:11 UTC 2004
On Fri, May 07, 2004 at 02:30:25AM -0700, Adam Megacz wrote:
> >> $ darcs inittree
> >> $ touch foo
> >> $ darcs add foo
> >> $ darcs record -am foo
> >> $ darcs rollback -m foo
> >> $ ls
> >> _darcs/ foo
> >> Is this confusing to anybody else?
> > After doing the rollback, the file foo no longer existed in the
> > repository.
> But why did it still exist in my local checkout? The patch I rolled
> back was the one that created the file, so the inverse patch (UNDO
> foo) should remove the file. Applying the inverse patch to the
> working directory should have deleted foo.
As I understand it, rollback, and unrecord do not back out the changes
in the working directory. This is very useful for undoing a few changes
in the repository, and then recording them together as a unified change
(or just changing what was changed).
More information about the darcs-users