Using <> markers to note values
View a file
http://<opengrok-server>/source/xref/<opengrok-project-name>/<filepath-within-depot>
So, if the file in P4 is
//depot/production/project/main/dir1/dir2/file
filepath-within-depot would be
dir1/dir2/file
File diff with earlier version
http://<opengrok-server>/source/diff/<opengrok-project-name>/build.properties?r2=%2F<opengrok-project-name>%2<filepath-within-depot-url-encoded>%40<p4-change>&r1=%2F<opengrok-project-name>%2F<filepath-within-depot-url-encoded>%40<p4-change>
NOTE
%2F - URL encoded /
%40 - URL encoded @
View a job/issue
View a change-set
For these 2 it looks like we have customized our version of OpenGrok to reference these to our internal tools that track issues and related changesets.
From the Opengrok source, it doesn't look like there are any paths/servlets that would make sense to be handling change number as the only query input or a bug/issue number as the same
https://github.com/OpenGrok/OpenGrok/blob/50c60fa3feefb22293e30dfba92e0d571db5cd6b/web/WEB-INF/web.xml
This issue would seem to support the idea that this is not available as a feature
https://github.com/OpenGrok/OpenGrok/issues/392
I had a quick look at adding this, most of the work is done except I am not familiar with OpenGrok. Would you be willing to send me some sample urls so I can check the end-point/params correct? I would need the following:
View a file
Diff a file with an earlier revision
View a job/issue
View a change-set
Thanks,
Paul