24af51e66d
This turns out to only be necessary is edge cases. Most of the time, git-annex unused --from remote doesn't see git-remote-annex keys at all, because it does not record a location log for them. On the other hand, git-annex unused does find them, since it does not rely on the location log. And that's good because they're a local cache that the user should be able to drop. If, however, the user ran git-annex unused and then git-annex move --unused --to remote, the keys would have a location log for that remote. Then git-annex unused --from remote would see them, and would consider them unused. Even when they are present on the special remote they belong to. And that risks losing data if they drop the keys from the special remote, but didn't expect it would delete git branches they had pushed to it. So, make git-annex unused --from skip git-remote-annex keys whose uuid is the same as the remote. |
||
---|---|---|
.. | ||
VURL | ||
External.hs | ||
GitRemoteAnnex.hs | ||
Hash.hs | ||
URL.hs | ||
Utilities.hs | ||
Variety.hs | ||
VURL.hs | ||
WORM.hs |