diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-04-02 19:04:33 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-04-07 09:09:18 +0200 |
commit | f58a9b0e62879e28cc7cac59b489a52c924bbc36 (patch) | |
tree | 315f86d13edcc78e26eb3a2237afd73baadb7ae6 /src/libfetchers/mercurial.cc | |
parent | 670feb000a9fac76f0996711f061ec466a53dc97 (diff) |
Respect the narHash attribute in more input types
(cherry picked from commit a6ff66b658b61aef80d936f0183447fe4cb46000)
Diffstat (limited to 'src/libfetchers/mercurial.cc')
-rw-r--r-- | src/libfetchers/mercurial.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libfetchers/mercurial.cc b/src/libfetchers/mercurial.cc index 790f7c753..1d6571571 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; } |