summaryrefslogtreecommitdiff
path: root/Test.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2016-01-26 17:33:16 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2016-01-26 17:33:16 -0400
commitc14d637df1e7880904c4f28aad70d179d347aed4 (patch)
tree261a604f8a2116597b5f51a7530e849df03d64a2 /Test.hs
parentef53912536eaa0d65a0f572c165eb22fe0d64655 (diff)
test case for recent sync --content reversion
Diffstat (limited to 'Test.hs')
-rw-r--r--Test.hs12
1 files changed, 12 insertions, 0 deletions
diff --git a/Test.hs b/Test.hs
index e281d5fc1..bd57621c4 100644
--- a/Test.hs
+++ b/Test.hs
@@ -916,6 +916,18 @@ test_sync = intmpclonerepo $ do
- 7b0970b340d7faeb745c666146c7f701ec71808f, where in direct mode
- sync committed the symlink standin file to the annex. -}
git_annex_expectoutput "find" ["--in", "."] []
+ {- Regression test for bug fixed in
+ - 039e83ed5d1a11fd562cce55b8429c840d72443e, where a present
+ - wanted file was dropped. -}
+ git_annex "get" [annexedfile] @? "get failed"
+ git_annex_expectoutput "find" ["--in", "."] [annexedfile]
+ git_annex "wanted" [".", "present"] @? "wanted failed"
+ git_annex "sync" ["--content"] @? "sync failed"
+ git_annex_expectoutput "find" ["--in", "."] [annexedfile]
+ git_annex "drop" [annexedfile] @? "drop failed"
+ git_annex_expectoutput "find" ["--in", "."] []
+ git_annex "sync" ["--content"] @? "sync failed"
+ git_annex_expectoutput "find" ["--in", "."] []
{- Regression test for union merge bug fixed in
- 0214e0fb175a608a49b812d81b4632c081f63027 -}