Would it be possible for git annex info
to also show dead remotes (behind an option is fine), to make it easy to find what dead remotes there are? I needed to check what I had done for a service that was going away (AARNET Cloudstor, which used webdav), and was confused as to why it wasn't appearing anywhere.
Current workaround is to do some shell magic:
This should be a time-sorted overview of all dead git annex remote IDs (read: get all trust level info from
git-annex
-branch, keep only dead ones, sort reversely by time to then keep only the most up-to-date entry per remote, finally sorting by time again). Unfortunately,git annex info DEADREMOTEID
doesn't work (Temporarily setting the trustlevel back to something undead e.g. withgit -c remote.DEAD.annex-trustlevel=untrust -c remote.DEAD.annex-uuid=6f2f88b1-75b0-4628-aca0-b7e404881787 annex info
or putting the equivalent in.git/config
also doesn't work.), so to get the description we need to read it manually from thegit-annex
-branch (provided you didn't rungit annex forget --drop-dead
of course...):This is as far as it gets in terms of prettiness I'm afraid.
I'd also like an option to show dead remotes, e.g. with
git annex info --all
orgit annex info --show-dead
. And havinggit annex info DEADREMOTEID
work would also be nice 🙂Yep, I realised I could grep trust.log to see that I'd marked it as dead, but it did take me a bit of time to realise this (I was thinking "did I enable cloudstor on this machine, maybe it only shows up on machines you enable it on, but I though I did that previously...").
I think even a count of dead remotes (so you know what you need to look for) would be helpful, if minimal changes are required.