[darcs-users] post-hoc move

Dan Pascu dan at ag-projects.com
Fri Jul 31 18:05:52 UTC 2009

On Friday 31 July 2009, Lele Gaifax wrote:
> As you can see, both the explicit move of "a -> a.txt" and the
> "retrospective" one "b -> b.txt" had the same effect on the recorded
> patch, no new option is required IMHO.

I agree. If it already works like this that an extra flag is unnecessary. If 
it only has problems in the corner case where the file is moved to a directory 
which is not already under darcs control, then maybe that directory should be 
automatically added to darcs control. This is already done for other things 
and it works just fine. For example if I do this:

mkdir foo
touch foo/bar
darcs add foo/bar

then foo is automatically added alongside bar by darcs even though I didn't 
explicitly request it.


More information about the darcs-users mailing list