deal with ignoreinode config setting
authorJoey Hess <joeyh@joeyh.name>
Fri, 16 Sep 2022 18:11:25 +0000 (14:11 -0400)
committerJoey Hess <joeyh@joeyh.name>
Fri, 16 Sep 2022 18:11:25 +0000 (14:11 -0400)
commit1fe9cf7043e9c24bd8719d45f68f349c0c87e215
tree0a599ddb22e334b458f739a6d3e42c6d64982f60
parent4a1030d51d13c62ddaf361426a4c0319b2736c86
deal with ignoreinode config setting

Improve handling of directory special remotes with importtree=yes whose
ignoreinode setting has been changed. (By either enableremote or by
upgrading to commit 3e2f1f73cbc5fc10475745b3c3133267bd1850a7.)

When getting a file from such a remote, accept the content that would have
been accepted with the previous ignoreinode setting.

After a change to ignoreinode, importing a tree from the remote will
re-import and generate new content identifiers using the new config. So
when ignoreinode has changed to no, the inodes will be learned, and after
that point, a change in an inode will be detected as a change. Before
re-importing, a change in an inode will be ignored, as it was before the
ignoreinode change. This seems acceptble, because the user can re-import
immediately if they urgently need to add inodes. And if not, they'll
do it sometime, presumably, and the change will take effect then.

Sponsored-by: Erik Bjäreholt on Patreon
CHANGELOG
Remote/Directory.hs
Utility/InodeCache.hs
doc/bugs/Incorrect___34__file_content_has_changed__34___on_duplicates/comment_3_a99df351ed700f908b6aaf3f52d245b4._comment [new file with mode: 0644]