git-annex/doc/git-annex-rmurl/comment_2_181581caac6ee439ba1003ebca79ed09._comment
Joey Hess 451171b7c1
clean up url removal presence update
* rmurl: Fix a case where removing the last url left git-annex thinking
  content was still present in the web special remote.
* SETURLPRESENT, SETURIPRESENT, SETURLMISSING, and SETURIMISSING
  used to update the presence information of the external special remote
  that called them; this was not documented behavior and is no longer done.

Done by making setUrlPresent and setUrlMissing only update presence info
for the web, and only when the url is a web url. See the comment for
reasoning about why that's the right thing to do.

In AddUrl, had to make it update location tracking, to handle the
non-web-url case.

This commit was sponsored by Ewen McNeill on Patreon.
2018-10-04 17:35:49 -04:00

11 lines
355 B
Text

[[!comment format=mdwn
username="joey"
subject="""comment 2"""
date="2018-10-04T18:47:14Z"
content="""
rmurl should mark the content as not being present in the web special
remote once the last url is removed, and it does when I tested it just now.
There was a recent bug, now fixed, that prevented it doing that in some unusual
circumstances.
"""]]