* Quick hack to support checkout by date.

svn path=/nixpkgs/trunk/; revision=10890
This commit is contained in:
Eelco Dolstra 2008-02-28 23:43:21 +00:00
parent 66738cc356
commit b94af47b86

View File

@ -52,11 +52,13 @@ if test -z "$finalPath"; then
# Perform the checkout.
if test -z "$tag"; then
rtag="-DNOW"
args=(-D "now")
elif test "$USE_DATE" = "1"; then
args=(-D "$tag")
else
rtag="-r $tag"
args=(-r "$tag")
fi
(cd "$tmpPath" && cvs -f -z7 -d $cvsRoot export $rtag -d cvs-export $module >&2)
(cd "$tmpPath" && cvs -f -z0 -d $cvsRoot export "${args[*]}" -d cvs-export $module >&2)
# Compute the hash.
hash=$(nix-hash --type $hashType $hashFormat $tmpFile)