improve gerrit upload output to use crrev.com for URI shortening |
|
Issue descriptiontoday when you upload a CL, you get verbose output like: remote: Processing changes: refs: 1, new: 1, done remote: remote: SUCCESS remote: remote: New Changes: remote: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1291871 cros: support subcommands with arbitrary args can gerrit plugins hook this message stage ? that way we could write a gerrit plugin just for our Chrome GoB instances to change the displayed URI to use crrev.com. so the output would be: remote: New Changes: remote: https://crrev.com/c/1291871 cros: support subcommands with arbitrary args
,
Oct 24
Some pointers from Dave Borowitz: http://google3/third_party/java_src/gerritcodereview/gerrit/java/com/google/gerrit/server/git/ChangeReportFormatter.java It's a DynamicItem so designed to be swappable, but may not be now because it's unconditionally bound to the default implementation: http://google3/third_party/java_src/gerritcodereview/gerrit/java/com/google/gerrit/server/git/GitModule.java?l=31&rcl=191579433 contrast with e.g. LocalMergeSuperSetComputation.Module, which is not installed at all in GoB: http://google3/third_party/java_src/gerritcodereview/gerrit/java/com/google/gerrit/server/submit/LocalMergeSuperSetComputation.java?l=69&rcl=217688751 |
|
►
Sign in to add a comment |
|
Comment 1 by ajp@chromium.org
, Oct 19