1
0
Fork 0
mirror of https://github.com/NixOS/hydra.git synced 2024-10-18 17:02:28 -04:00

Add numbered revision id of mercurial as revCount.

This commit is contained in:
Rob Vermaas 2012-05-01 09:15:52 +02:00
parent 8f85fe67d4
commit 0fdcd3176b

View file

@ -542,10 +542,10 @@ sub fetchInputHg {
("hg", "pull"));
die "Error pulling latest change mercurial repo at `$uri':\n$stderr" unless $res;
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,("hg", "log", "-r", $id, "--template", "{node|short} {branch}"));
(my $res1, $stdout, $stderr) = captureStdoutStderr(600,("hg", "log", "-r", $id, "--template", "{node|short} {rev} {branch}"));
die "Error getting branch and revision of $id from `$uri':\n$stderr" unless $res1;
my ($revision, $branch) = split ' ', $stdout;
my ($revision, $revCount, $branch) = split ' ', $stdout;
my $storePath;
my $sha256;
@ -583,6 +583,7 @@ sub fetchInputHg {
, storePath => $storePath
, sha256hash => $sha256
, revision => $revision
, revCount => int($revCount)
};
}