Find a unique identifier for a Diffusion repository from a Git repository?
Find a unique identifier for a Diffusion repository from a Git repository?
Event Timeline
mavit updated the question from to Find a unique identifier for a Diffusion repository from a Git repository?.May 26 2016, 7:42 PM2016-05-26 19:42:48 (UTC+0)
Comment Actions
I think the only way right now is to get the remote uri, call repository.query with it, and parse that.
It might make sense to just teach arc which to output it's things in json.
Comment Actions
The trouble is that that could sometimes give the wrong answer, because querying the Git URI is not the only way that arc itself finds the repository; for example, the repository callsign can be hardcoded into .arcconfig.
As you say, machine-readable output for arc which would be helpful, here.