[darcs-devel] [issue1548] darcs query contents doesn't enforce mandatory argument

gwern bugs at darcs.net
Fri Aug 21 14:51:44 UTC 2009

New submission from gwern <gwern0 at gmail.com>:

The help for darcs query contents claims:

 Outputs a specific version of a file.

This would seem to imply that there *must* be a filename argument, else what is
it doing? However, darcs does not require a filename argument and will exit

[10:50 AM] 0Mb$ darcs query contents --match='hash
"20090820015315-823f1-5364754c6be3b162b9d0e60d1211725932995f9d.gz"' && echo foo

(This is on the darcs-wikirepo)

[10:50 AM] 0Mb$ darcs --version (beta 4)

Worse, darcs query contents will happily process an entire repo even when no
filename argument, a sometimes tedious process:

[10:51 AM] 0Mb$ time darcs query contents --match='hash

real	0m5.470s
user	0m3.624s
sys	0m1.788s

messages: 8313
nosy: dmitry.kurochkin, gwern, kowey, simon, thorkilnaur
status: unknown
title: darcs query contents doesn't enforce mandatory argument

Darcs bug tracker <bugs at darcs.net>

More information about the darcs-devel mailing list