diff options
Diffstat (limited to 'src/store.cc')
-rw-r--r-- | src/store.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/store.cc b/src/store.cc index 69532071310f..3e755a0d1a9a 100644 --- a/src/store.cc +++ b/src/store.cc @@ -104,6 +104,14 @@ void registerSuccessor(const Transaction & txn, } +Paths queryPredecessors(const Path & sucPath) +{ + Paths revs; + nixDB.queryStrings(noTxn, dbSuccessorsRev, sucPath, revs); + return revs; +} + + void registerSubstitute(const Path & srcPath, const Path & subPath) { Transaction txn(nixDB); |