about summary refs log tree commit diff
path: root/src/fstate.hh
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-08-20T12·39+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-08-20T12·39+0000
commit624c48260f1b4eec86daa0da5f33d4cbb963a361 (patch)
treebb0274a797cf79a65ad5bd23ed73a5483c2f5dc4 /src/fstate.hh
parent710175e6a0f737f108e802d6b0c3de0af04e500c (diff)
* Change the abstract syntax of slices. It used to be that ids were used as
  keys to reference slice elements, e.g.,

    Slice(["1ef7..."], [("/nix/store/1ef7...-foo", "1ef7", ["8c99..."]), ...])

  This was wrong, since ids represent contents, not locations.  Therefore we
  now have:

    Slice(["/nix/store/1ef7..."], [("/nix/store/1ef7...-foo", "1ef7", ["/nix/store/8c99-..."]), ...])

* Fix a bug in the computation of slice closures that could cause slice
  elements to be duplicated.

Diffstat (limited to 'src/fstate.hh')
-rw-r--r--src/fstate.hh4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fstate.hh b/src/fstate.hh
index b71739aed98a..e4f69cb232df 100644
--- a/src/fstate.hh
+++ b/src/fstate.hh
@@ -16,14 +16,14 @@ struct SliceElem
 {
     string path;
     FSId id;
-    FSIds refs;
+    Strings refs;
 };
 
 typedef list<SliceElem> SliceElems;
 
 struct Slice
 {
-    FSIds roots;
+    Strings roots;
     SliceElems elems;
 };