2024-05-02 00:46:19 +00:00
|
|
|
runCommand: subversion: repository:
|
2024-06-30 08:16:52 +00:00
|
|
|
import (
|
|
|
|
runCommand "head-revision"
|
|
|
|
{
|
|
|
|
buildInputs = [ subversion ];
|
2024-05-02 00:46:19 +00:00
|
|
|
dummy = builtins.currentTime;
|
|
|
|
}
|
|
|
|
''
|
|
|
|
rev=$(echo p | svn ls -v --depth empty ${repository} |awk '{ print $1 }')
|
|
|
|
echo "[ \"$rev\" ]" > $out
|
|
|
|
echo Latest revision is $rev
|
2024-06-30 08:16:52 +00:00
|
|
|
''
|
|
|
|
)
|