> I think failing when there is nothing to do was done to support
> scripting, so you could say 'if darcs add ... then ...'. Not sure if
> anyone seriously relies on that. My preference would be not to fail in
> such situations, except perhaps for pure query commands (whatsnew, log).
It's hard to say. There are cases where it would usefully indicate that
you did actually make a mistake (e.g. a typo in a filename) and in a
script having that signalled might be useful. But then there are plenty
of other mistakes that wouldn't be signalled anyway.
> BTW, I always liked the way darcs tells me "You don't want to xxx
> anything and that's fine with me" which to me means " Yes, I have
> successfully done nothing, exactly as you requested". But that's
> probably just the methematician in me ;-)
Yeah, I like it too :-)
|