about summary refs log tree commit diff
path: root/src/libstore/store-api.hh
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2016-10-07T17·15+0200
committerEelco Dolstra <edolstra@gmail.com>2016-10-07T17·15+0200
commit35db4f65a0f2ccbcaaef719e52b895fa78cad361 (patch)
tree49cd1bd79c53bc14502ea3fb11297549a0aa620c /src/libstore/store-api.hh
parent629ab8002218e9b526d947a9b7a2eccddc3f331c (diff)
Add copyClosure utility function for Hydra
Diffstat (limited to 'src/libstore/store-api.hh')
-rw-r--r--src/libstore/store-api.hh5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstore/store-api.hh b/src/libstore/store-api.hh
index 8efacfd18e..b876ffbba7 100644
--- a/src/libstore/store-api.hh
+++ b/src/libstore/store-api.hh
@@ -585,6 +585,11 @@ void copyStorePath(ref<Store> srcStore, ref<Store> dstStore,
     const Path & storePath, bool repair = false);
 
 
+/* Copy the closure of the specified paths from one store to another. */
+void copyClosure(ref<Store> srcStore, ref<Store> dstStore,
+    const PathSet & storePaths, bool repair = false);
+
+
 /* Remove the temporary roots file for this process.  Any temporary
    root becomes garbage after this point unless it has been registered
    as a (permanent) root. */