This commit is contained in:
Joey Hess 2019-04-16 13:18:59 -04:00
parent 7f50371bf2
commit 2f740d14da
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -0,0 +1,23 @@
[[!comment format=mdwn
username="joey"
subject="""comment 1"""
date="2019-04-16T17:09:39Z"
content="""
Dug a little into implementing this.
One problem is that things like `git annex dead` look up a name
in the remote list, and then use the uuid of the returned remote.
But if remote foo has sameas=bar-uuid, then the remote in the remote
list that it looks up will have that uuid, and so the uuid that will
be marked as dead is almost certianly not the one that the user expected.
And the user can't pass the masked uuid of the sameas remote to `git-annex
dead`, because there will be no remote in the list with that uuid.
And for that matter, the user is not likely to know the masked uuid,
because things like `git annex info` won't display it..
Another gotcha is that the user might make remote B with sameas=A-uuid,
and remote C with sameas=B-uuid. Which really needs to resolve to A-uuid,
so it needs to do multiple lookups, but then a sameas loop becomes a problem.
"""]]