aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/mercurial.cc
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-04-02 19:04:33 +0200
committerEelco Dolstra <edolstra@gmail.com>2020-04-02 19:04:33 +0200
commita6ff66b658b61aef80d936f0183447fe4cb46000 (patch)
tree4ffc21b36ff043f720fb5d00a8bde34f97f14cf9 /src/libfetchers/mercurial.cc
parent78ad5b3d91507427fa563f3474dc52da608ad224 (diff)
Respect the narHash attribute in more input types
call-flake.nix now passes node.info.narHash to fetchTree. This ensures that dirty Git trees work even in pure mode.
Diffstat (limited to 'src/libfetchers/mercurial.cc')
-rw-r--r--src/libfetchers/mercurial.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/mercurial.cc b/src/libfetchers/mercurial.cc
index 4b73fbcbe..5abb00172 100644
--- a/src/libfetchers/mercurial.cc
+++ b/src/libfetchers/mercurial.cc
@@ -33,7 +33,7 @@ struct MercurialInput : Input
bool isImmutable() const override
{
- return (bool) rev;
+ return (bool) rev || narHash;
}
std::optional<std::string> getRef() const override { return ref; }