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
successfully:
[10:50 AM] 0Mb$ darcs query contents --match='hash
"20090820015315-823f1-5364754c6be3b162b9d0e60d1211725932995f9d.gz"' && echo foo
foo
(This is on the darcs-wikirepo)
[10:50 AM] 0Mb$ darcs --version
2.2.98.4 (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
"20040519123446-9bed5-5a1d5f9b10dac5cfdc3d43c56c510e252a06ce85.gz"'
real 0m5.470s
user 0m3.624s
sys 0m1.788s
|