[darcs-users] Escaping of hunks and file names

Alexander Staubo alex at byzantine.no
Mon Nov 8 16:06:56 UTC 2004


David Roundy wrote:
> The problem here is that often one will run
> 
> darcs add *
> 
> trusting darcs to add only the relevant files.  It's hard to see in this
> case exactly what the error code should indicate.  I suppose if *no* files
> are added, we could consider that failure.  It would be sufficient if you
> were adding a single file, but mightn't that definition of failure cause
> trouble when adding several files at once? I guess the answer may be that
> careful scripts should add files one at a time? Or maybe we should fail if
> any of the files couldn't be added, and figure that when run interactively
> the error code will be ignored and the user will just read the message.

Oh, and the *other* sane, possibly better, solution is to simply abort 
on errors. If "add *" includes an existing file, don't allow it in the 
general case; but also accept a command-line option to ignore such cases.

Alexander.




More information about the darcs-users mailing list