summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2014-01-22 15:33:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2014-01-22 15:33:02 -0400
commitcc366b8241cfc3e41252ecd2624332c15da03377 (patch)
tree78d254a03b1298ff3ae9c8c77dad04b049ce1871 /Test.hs
parentf78a0a2b11591aca0885213e0b74cddff4d6ae57 (diff)
add timestamps to unused log files
This will be used in expiring old unused objects. The timestamp is when it was first noticed it was unused. Backwards compatability: It supports reading old format unused log files. The old version of git-annex will ignore lines in log files written by the new version, so the worst interop problem would be git annex dropunused not knowing some numbers that git-annex unused reported.
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Test.hs b/Test.hs
index 962fc9d7f..d38efea04 100644
--- a/Test.hs
+++ b/Test.hs
@@ -683,7 +683,7 @@ test_unused env = intmpclonerepoInDirect env $ do
where
checkunused expectedkeys desc = do
git_annex env "unused" [] @? "unused failed"
- unusedmap <- annexeval $ Logs.Unused.readUnusedLog ""
+ unusedmap <- annexeval $ Logs.Unused.readUnusedMap ""
let unusedkeys = M.elems unusedmap
assertEqual ("unused keys differ " ++ desc)
(sort expectedkeys) (sort unusedkeys)