1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-06 05:01:48 +02:00

Add Mercurial tests

This commit is contained in:
Eelco Dolstra 2020-01-27 13:45:49 +01:00
parent cc22cf662b
commit 5046233b5a
3 changed files with 69 additions and 6 deletions

View file

@ -89,6 +89,8 @@ struct MercurialInput : Input
// FIXME: return lastModified.
// FIXME: don't clone local repositories.
if (!input->ref && !input->rev && isLocal && pathExists(actualUrl + "/.hg")) {
bool clean = runProgram("hg", true, { "status", "-R", actualUrl, "--modified", "--added", "--removed" }) == "";