[darcs-users] Two simple darcs queries

David Roundy droundy at abridgegame.org
Sat Oct 25 11:57:51 UTC 2003


On Fri, Oct 24, 2003 at 09:18:05PM +0100, Anthony Doggett wrote:
> (1)
> How does one perform the equivalent of "cvs -n up" with darcs?  The
> closest that I can see is "darcs whatsnew --look-for-adds", but this
> generates much more output than I usually want and the output generated
> for binary files is .. not helpful.

Hmmm.  I'm not entirely sure what "cvs -n up" does.  From the context of
your question I presume it lists the files that have been modified as well
as any extra files it doesn't understand? There is currently no convenient
way to do this.  Probably the thing to do is to add an option to whatsnew
to cause it to simply list the files changed and describe how they
changed.  Perhaps "darcs whatsnew --summary --look-for-adds"?

> (2)
> Why does the following retrieve 0.9.13.MinGW rather than 0.9.13?
> 
> >darcs get -t "0.9.13" --verbose http://abridgegame.org/repos/darcs
> Getting tagged version:
> [TAG 0.9.13.MinGW

That's because the -t option accepts a regular expression, which is matched
by both tags, so it retrieves the more recent one.  You can get 0.9.13
using get -t '0.9.13$'.  I've been bitten by this also.  Often it is nice
to have this kind of matching.  e.g. it might be handy (if there was more
than one version tagged "MinGW" to do darcs get -t 'MinGW' to get the most
recent version known to work with MinGW.
-- 
David Roundy
http://www.abridgegame.org




More information about the darcs-users mailing list