From c3eaecb244bd52713184a45c574c80f785ceaaab Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 4 Apr 2023 13:34:32 -0400 Subject: [PATCH] comment --- ..._124bbd63a2a85004ff9cf965ad984fb4._comment | 29 +++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 doc/bugs/registerurl_does_not_register_if_external_remote/comment_1_124bbd63a2a85004ff9cf965ad984fb4._comment diff --git a/doc/bugs/registerurl_does_not_register_if_external_remote/comment_1_124bbd63a2a85004ff9cf965ad984fb4._comment b/doc/bugs/registerurl_does_not_register_if_external_remote/comment_1_124bbd63a2a85004ff9cf965ad984fb4._comment new file mode 100644 index 0000000000..30e101f365 --- /dev/null +++ b/doc/bugs/registerurl_does_not_register_if_external_remote/comment_1_124bbd63a2a85004ff9cf965ad984fb4._comment @@ -0,0 +1,29 @@ +[[!comment format=mdwn + username="joey" + subject="""comment 1""" + date="2023-04-04T17:07:37Z" + content=""" +This is intentional, see [[!commit 451171b7c1eaccfd0f39d4ec1d64c6964613f55a]] +which changed setUrlPresent to only update presence info when the url +belongs to the web but not when it's claimed by other special remotes. + +It makes sense for registerurl to be symmetric with rmurl, and rmurl only +updates presence info when the url is a web url. + +To the extent I've been able to follow the complex reasoning there for why, +part of it is clear: The web special remote is different from other special +remotes in that content cannot be dropped from it by git-annex, and the url is +the only pointer to content. So when rmurl removes the last web url, it makes +sense to treat the content as no longer present on the web. But if the url is +claimed by another special remote, which does support dropping content, the +content would still be present on it after removing its url, and would be +accessible w/o using that url, and `git-annex fsck --fast --from` would notice +it was present and fix up the location log if it didn't show it as content. + +Also note that the rmurl man page documents this when it says: + + Removing the last web url will make git-annex no longer treat content as being + present in the web special remote. + +All you need to do is use `git-annex setpresentkey` along with registerurl. +"""]] -- 2.30.2