diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:11:00 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-10-07 12:11:00 +0200 |
commit | cfaad7168e7ac72d4b2024df2e093b86b45b70fc (patch) | |
tree | 8ed6321f3b9e151932145cd83b23d9a41f60d698 /src/libexpr/primops/fetchMercurial.cc | |
parent | c9ee634f75296be1bb123760251919213439eb49 (diff) |
Refactoring: Add allowPath() method
Diffstat (limited to 'src/libexpr/primops/fetchMercurial.cc')
-rw-r--r-- | src/libexpr/primops/fetchMercurial.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/libexpr/primops/fetchMercurial.cc b/src/libexpr/primops/fetchMercurial.cc index 3f88ccb91..b51b155f7 100644 --- a/src/libexpr/primops/fetchMercurial.cc +++ b/src/libexpr/primops/fetchMercurial.cc @@ -84,8 +84,7 @@ static void prim_fetchMercurial(EvalState & state, const Pos & pos, Value * * ar mkInt(*state.allocAttr(v, state.symbols.create("revCount")), *revCount); v.attrs->sort(); - if (state.allowedPaths) - state.allowedPaths->insert(tree.actualPath); + state.allowPath(tree.actualPath); } static RegisterPrimOp r_fetchMercurial("fetchMercurial", 1, prim_fetchMercurial); |