move: Fix a regression in the last release that made move --to not honor numcopies...
authorJoey Hess <joeyh@joeyh.name>
Fri, 13 Nov 2020 18:19:32 +0000 (14:19 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 13 Nov 2020 18:19:32 +0000 (14:19 -0400)
This commit was sponsored by Svenne Krap on Patreon.

CHANGELOG
Command/Move.hs
doc/bugs/move_violates_numcopies___40__regression__41__.mdwn
doc/bugs/move_violates_numcopies___40__regression__41__/comment_2_98a0c583ed094fec0e8c666e5839c2f7._comment [new file with mode: 0644]

index be011d78a3e430e9f2e5035d7f9d1d9d6f93baa7..93fa5851dbcaad45eaf57e52f14688d8da1bc05a 100644 (file)
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,5 +1,7 @@
 git-annex (8.20201104) UNRELEASED; urgency=medium
 
+  * move: Fix a regression in the last release that made move --to not
+    honor numcopies settings.
   * sync --content: Fix a bug where a file that was not preferred content
     could be transferred to a remote. This happened when the file got deleted
     after the sync started running.
index 85ee923422217748f453c8f7181f97fa16ba3c41..1e5a282752a40b97b31fa49ec0f7935625be079b 100644 (file)
@@ -151,7 +151,7 @@ toPerform dest removewhen key afile fastcheck isthere = do
                                        when fastcheck $
                                                warning "This could have failed because --fast is enabled."
                                        stop
-               Right True -> logMove srcuuid destuuid False key $ \deststartedwithcopy ->
+               Right True -> logMove srcuuid destuuid True key $ \deststartedwithcopy ->
                        finish deststartedwithcopy $
                                unlessM (expectedPresent dest key) $
                                        Remote.logStatus dest key InfoPresent
index 757e1803ba21df6daf9fdaa0431ae3d57e3217c3..9ab92e08de041ca7c5db0ea6c62f7bf90f1e648a 100644 (file)
@@ -54,3 +54,5 @@ Relevant links:
 I'm really excited about using git-annex, and have spent 3-4 days reading documentation, past bug reports, setting up repos, transferring data, and manually testing failure cases (e.g. this one :p).
 
 Thanks for all your hard work!
+
+> [[fixed|done]] --[[Joey]]
diff --git a/doc/bugs/move_violates_numcopies___40__regression__41__/comment_2_98a0c583ed094fec0e8c666e5839c2f7._comment b/doc/bugs/move_violates_numcopies___40__regression__41__/comment_2_98a0c583ed094fec0e8c666e5839c2f7._comment
new file mode 100644 (file)
index 0000000..a34630e
--- /dev/null
@@ -0,0 +1,15 @@
+[[!comment format=mdwn
+ username="joey"
+ subject="""comment 2"""
+ date="2020-11-13T18:01:29Z"
+ content="""
+Oh what a dumb mistake, literally a copied "False" that should be "True".
+
+I'm going to move the next release up due to this regression, but
+thankfully it doesn't result in data loss, so am not going to do a crash
+priority release. Probably Monday.
+
+The test suite also has a test case for move and numcopies now. It used to be
+ok for it to only test drop and numcopies, but that changed a while back
+and it should have had one already.
+"""]]