diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-02-01 23:54:20 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-02-01 23:54:20 +0100 |
commit | 887730aab39dd63a37d49d72a07c6441ea3b2f92 (patch) | |
tree | 9bda18dac5be9832ea797a73fe375829ba9f9785 /src/libexpr/primops/fetchMercurial.cc | |
parent | b9d64f931893120834fa54ebf084764d2e22ba33 (diff) |
Remove superfluous TreeInfo::rev field
Diffstat (limited to 'src/libexpr/primops/fetchMercurial.cc')
-rw-r--r-- | src/libexpr/primops/fetchMercurial.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/fetchMercurial.cc b/src/libexpr/primops/fetchMercurial.cc index fea46e7c5..5d6b65c3b 100644 --- a/src/libexpr/primops/fetchMercurial.cc +++ b/src/libexpr/primops/fetchMercurial.cc @@ -73,7 +73,7 @@ static void prim_fetchMercurial(EvalState & state, const Pos & pos, Value * * ar mkString(*state.allocAttr(v, state.symbols.create("branch")), *input2->getRef()); // Backward compatibility: set 'rev' to // 0000000000000000000000000000000000000000 for a dirty tree. - auto rev2 = tree.info.rev.value_or(Hash(htSHA1)); + auto rev2 = input2->getRev().value_or(Hash(htSHA1)); mkString(*state.allocAttr(v, state.symbols.create("rev")), rev2.gitRev()); mkString(*state.allocAttr(v, state.symbols.create("shortRev")), std::string(rev2.gitRev(), 0, 12)); if (tree.info.revCount) |