2006-01-30 14:18:38 +03:00
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
tagtext=""
|
|
|
|
tagflags=""
|
2014-06-28 22:33:28 +04:00
|
|
|
if test -n "$rev"; then
|
|
|
|
tagtext="(tag $rev) "
|
|
|
|
tagflags="--tag=$rev"
|
2009-05-13 23:02:23 +04:00
|
|
|
elif test -n "$context"; then
|
|
|
|
tagtext="(context) "
|
|
|
|
tagflags="--context=$context"
|
2006-01-30 14:18:38 +03:00
|
|
|
fi
|
|
|
|
|
2008-03-06 05:46:29 +03:00
|
|
|
header "getting $url $partial ${tagtext} into $out"
|
2006-01-30 14:18:38 +03:00
|
|
|
|
2012-10-22 17:02:33 +04:00
|
|
|
darcs get --lazy $tagflags "$url" "$out"
|
2006-01-30 14:18:38 +03:00
|
|
|
# remove metadata, because it can change
|
|
|
|
rm -rf "$out/_darcs"
|
|
|
|
|
|
|
|
stopNest
|