[darcs-users] Automatic darcs

David Roundy droundy at abridgegame.org
Sat Aug 7 09:44:28 UTC 2004


On Fri, Aug 06, 2004 at 01:49:05PM +0200, Lele Gaifax wrote:
> >>>>> "David" == David Roundy <droundy at abridgegame.org> writes:
> 
>     David> Another possibility would be to create a replacement for mv
>     David> that calls darcs mv if it is in a darcs repository and
>     David> otherwise just calls mv.  Then one could alias mv to this
>     David> clever replacement.  Of course, this would probably only
>     David> work on non-windows systems...
> 
> Speaking of which, which is the better way of checking if a particular
> subdir is already under darcs?  My sync tool needed such info, and I
> coded it using "darcs annotate" on the directory looking at its exit
> status... 

The only better way I can think of would be to do a darcs changes --last 1
and look at the exit status.  This is a bit more efficient.  Significantly
more efficient for truly large repos with long histories.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list