From b81f5532c600f6230af5d02d015ff0accaa0ae1c Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Fri, 21 May 2021 16:44:44 -0400 Subject: [PATCH] comment --- ..._019d3e6e8dcbe753f2053486d1628714._comment | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 doc/bugs/indeterminite_preferred_content_state_for_duplicated_file/comment_11_019d3e6e8dcbe753f2053486d1628714._comment diff --git a/doc/bugs/indeterminite_preferred_content_state_for_duplicated_file/comment_11_019d3e6e8dcbe753f2053486d1628714._comment b/doc/bugs/indeterminite_preferred_content_state_for_duplicated_file/comment_11_019d3e6e8dcbe753f2053486d1628714._comment new file mode 100644 index 0000000000..eb2017f32b --- /dev/null +++ b/doc/bugs/indeterminite_preferred_content_state_for_duplicated_file/comment_11_019d3e6e8dcbe753f2053486d1628714._comment @@ -0,0 +1,32 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 11""" + date="2021-05-21T20:26:39Z" + content=""" +Started a branch `trackassociated` for this. So far, I've gotten the +associated files to be kept updated with changes to locked files as well as +unlocked files, and when files are removed it deletes the old associated +files which did not happen reliably before. Performance impact of this is +TBD, but it should only slow it down in situations where a large change has +been made to the index -- eg checking out a very different branch, or +adding a large number of files. + +There is a problem though: + + $ git config annex.addunlocked true + $ touch n + $ git annex add n + $ echo 'select * from associated;' | sqlite3 .git/annex/keysdb/db + SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|n + $ git mv n n2 + $ git annex add n2 + $ echo 'select * from associated;' | sqlite3 .git/annex/keysdb/db + 1|SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|n + 2|SHA256E-s0--e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855|n2 + +The old filename does not get removed in this case. + +Also, git commit currently fails, problem with index locking inside the smudge +filter, which prevents git write-tree from working. Should be fixable by +detecting when the index is locked and avoiding updating then. +"""]]