Generate "permalink" style new change links during receive

This style of link is better suited to copy and pasting into a longer
term repository, like a bug tracking system.  I keep finding myself
copying change ids from Gerrit into Gerrit's own issue tracker, but
I edit them by hand to be permalink style.  Using that in the output
just makes it easier on me and everyone else.

I highly doubt the speed improvement of using the anchor form is a
major issue for us, users copying links from a terminal are likely
going to be opening a new browser tab/window for the link rather
than recycling one that already has Gerrit open.

Signed-off-by: Shawn O. Pearce <sop@google.com>
1 file changed