Граф коммитов

12 Коммитов

Автор SHA1 Сообщение Дата
Brad Fitzpatrick 5612addc94 gerrit: add Auth mode to use a specific cookie file, add more methods
This is stuff needed for my Github->Gerrit bot.

Change-Id: Ie072d7b66be2b219ba48245305a8187446238c9e
Reviewed-on: https://go-review.googlesource.com/19380
Reviewed-by: Andrew Gerrand <adg@golang.org>
2016-02-08 23:00:44 +00:00
Brad Fitzpatrick 09ec8bf053 gerrit: add Client.AbandonChange
Change-Id: Ic48abd39a8a68de058595077082902f57577ce6d
Reviewed-on: https://go-review.googlesource.com/19312
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2016-02-07 01:06:58 +00:00
Austin Clements df7c940775 gerrit: add parents field to CommitInfo
Change-Id: I7cb20909d2476dc720f6c5283b48e838099fad1a
Reviewed-on: https://go-review.googlesource.com/16156
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-10-22 01:56:48 +00:00
Rob Earhart 264f8cb771 gerrit: Add additional RevisionInfo fields
Adds fields for the 'draft' flag, patch set number, and revision uploader.

Change-Id: I3780e2df046d9fe1065a6dc1b39400b4ea049d3a
Reviewed-on: https://go-review.googlesource.com/13936
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-08-27 01:32:52 +00:00
Rob Earhart 482b2ecd51 gerrit: Add GetAccountInfo
This implements the get-account Gerrit REST API method.

Change-Id: I5e9e7abaabb3e9c85798f52418fab58447960253
Reviewed-on: https://go-review.googlesource.com/13930
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-08-25 19:27:43 +00:00
Rob Earhart 1d862e84f2 gerrit: Add additional fields to RevisionInfo
This adds revision creation date, git ref, and fetch info to the Gerrit
RevisionInfo type.  In particular, adding fetch info allows the caller
to include "DOWNLOAD_COMMANDS" as a field to return in queries; this can
be useful in automation.

Change-Id: I407024b2d50278f7179bc589cbe29fa279d5ab78
Reviewed-on: https://go-review.googlesource.com/13896
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-08-24 21:25:00 +00:00
Andrew Gerrand 06fc01ae94 gerrit: add GetChangeInfo method to Client
Change-Id: If2eae2321b992547e4b93b1b2d3a7ecff44e6bb1
Reviewed-on: https://go-review.googlesource.com/10443
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-05-27 20:30:07 +00:00
Russ Cox 8f9b6de7ac cl: document, implement R= parsing, adjust default output, add -json output
Sample of new default output:

CL 9259    1/  1d go      0intro        bradfitz+2*     archive/tar: fix error message
CL 6790   15/ 52d go      vbatts@gma... bradfitz*       archive/tar: fix round-trip attributes #9027
CL 9267    2/  2d go      josharian     *               cmd/5g, etc: prepare Node.Val to be unexported
CL 9263    2/  3d go      josharian     minux*          cmd/5g, etc: prepare to unexport gc.Mp*
CL 8773    1/ 14d go      michael.hu... iant*           cmd/6l, cmd/internal/ld: abort on shared library ABI mismatch
CL 8214    4/ 26d go      aram          iant+2*         cmd/6l: use .plt instead of .got on Solaris

The old default behavior of "cl" is now "cl -r -url".

Change-Id: I5befaa0edffa965a041d223aa75aca7c26c6984a
Reviewed-on: https://go-review.googlesource.com/9360
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2015-04-27 14:35:15 +00:00
Brad Fitzpatrick 0c3bcdca16 cmd/cl: new command to print out CLs which need attention
Change-Id: Ifb314cf139ba6982ae1bc62f48cb7bebb85cec45
Reviewed-on: https://go-review.googlesource.com/8635
Reviewed-by: David Crawshaw <crawshaw@golang.org>
Reviewed-by: Russ Cox <rsc@golang.org>
2015-04-11 07:12:47 +00:00
Brad Fitzpatrick 421541fcd9 coordinator: trybot support
Change-Id: Ib7cd89aba1d529944120d6024c120a7b19330378
Reviewed-on: https://go-review.googlesource.com/4680
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-02-12 23:22:58 +00:00
Brad Fitzpatrick 201fc26833 gerrit: add SetReview method
Tested it at: https://go-review.googlesource.com/#/c/4460/
(the 3rd comment from gobot, at minute :18)

Change-Id: If42eebf057b15ce83d1d4ed2e14460011a8d02d4
Reviewed-on: https://go-review.googlesource.com/4532
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-02-11 05:31:17 +00:00
Brad Fitzpatrick c78912590c gerrit: start of the gerrit package, for the TryBot's Gerrit interactions
Change-Id: Ib8fc38f523058c0d8635991f8934f734253a56fc
Reviewed-on: https://go-review.googlesource.com/4531
Reviewed-by: Andrew Gerrand <adg@golang.org>
2015-02-11 04:42:22 +00:00