We have an internal tool that links to code in Diffusion. This tool knows the repo, file path, commit hash, and line number -- but does not know the branch.
We used to use a link of the form /diffusion/<repo>/browse/<commit hash>/<path to file>$<line no> but in a recent update, those links started failing with the error message:
Unhandled Exception ("DiffusionRefNotFoundException")
Ref "<commit hash>" does not exist in this repository.
We now use links of the form /diffusion/<repo>/browse/master/<path to file>;<commit hash>$<line no>, but this only works for code on master -- if the commit hash corresponds to another branch, it doesn't work.
Can we have a Diffusion URL route that shows a given file/commit/line number without needing to explicitly provide the branch?