query
On this page

fetchsvnrevision

pkgs.fetchsvnrevision

Docs pulled from | This Revision | 26 minutes ago


Contribute
Enhance the ecosystem with your expertise! Contribute to fill the gaps in documentation. Your input can make a difference.

Noogle detected

Implementation

The following is the current implementation of this function.

repository:
import (
  runCommand "head-revision"
    {
      buildInputs = [ subversion ];
      dummy = builtins.currentTime;
    }
    ''
      rev=$(echo p | svn ls -v --depth empty  ${repository} |awk '{ print $1 }')
      echo "[ \"$rev\" ]" > $out
      echo Latest revision is $rev
    ''
)