| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Change-Id: I64f69dc544129772446f4995e6f148c388cb0f62
|
|
|
|
|
|
|
| |
Hard-coding the package list caused the `rest` package to
be missed.
Change-Id: I9119f358071c308add1ad167fb934d17ca88198c
|
|
|
|
| |
Change-Id: I32b970452809d31037ad15783d2f50e894e530ed
|
|
|
|
| |
Change-Id: I57db6ab987ac604134267ccc79ec4451a0119841
|
|
|
|
|
|
|
| |
Include the account information for the user who gave the
approval.
Change-Id: I3857c9913c38a5c5223111274314e107f4c81090
|
|
|
|
|
|
|
| |
The "currentPatchset" field of the query results includes information
about the review label scores.
Change-Id: I41d54225284e15b2b61b79bfaa309cd5c2b4b86a
|
|
|
|
| |
Change-Id: I188e4cc116878cdd6679e45bf3ee545b20ce974e
|
|
|
|
|
|
|
|
|
|
|
| |
The from_json method returns None if the key does not exist
in the json data, so we don't need to check for existence of
the key when constructing the object.
This also ensures that the constructed object has a sortkey
member.
Change-Id: Ic342f8b25aeded0e999f93fa29190853354c57f0
|
|
|
|
| |
Change-Id: I0fc676f74f6e41c25d7f9f8a504e6a507a5bb43a
|
|
|
|
|
|
|
| |
Remove GerritRestAPIError. Raise requests.HTTPError when a request
results in an HTTP Error. Raise ValueError in other places.
Change-Id: I25188f64161a6ca8159e7777e3f288f775463c25
|
|
|
|
| |
Change-Id: I91b90d26fde775d5d58ee127fd9015757090a978
|
|
|
|
| |
Change-Id: If1863c06619a11f93efc7c25c7c33c749950d6a5
|
|
|
|
|
|
|
|
|
|
| |
If the username is not given in the constructor, it is detected
from the ssh config.
Add a method that allows the client to get the detected username
that was used to connect to Gerrit.
Change-Id: I15747d1446b07ce6b250f294fe72842a1be50a6c
|
|
|
|
| |
Change-Id: Ia72639e9579e6a438b520b50a799f18184de206b
|
|
|
|
| |
Change-Id: I41828e0c181b53604ef84f423267f1c45ca6d7b4
|
|
|
|
| |
Change-Id: I60d31b86a8df2e5cb785f367140de4567ff32e10
|
|
|
|
|
|
|
|
|
|
|
|
| |
In commit a1ca197 the version was supposed to be bumped to 0.2.0 but
was set to 0.2.1 instead.
The 0.2.0 tag was already pushed, so it can't be fixed now.
Make 0.2.1 instead with the couple of documentation fixes that have
been added since.
Change-Id: I70afb0de3124c03d957a8be0d54cabcceb5be9b8
|
|
|
|
| |
Change-Id: I2a9d0e50978334e560e076791029746f2531ea51
|
|
|
|
| |
Change-Id: Ia7cb549ccb2453e984596514aba737a54155a0b9
|
|
|
|
| |
Change-Id: I31c7c86a0f9da8e4a144cadc8959caefc53969fb
|
|
|
|
| |
Change-Id: I031b9293fd6ae3afe28e114b8d5ecc6de34f1bb3
|
|
|
|
| |
Change-Id: Id87cffa0938c7cd203d91b91be85a13ee4e4afd4
|
|
|
|
|
|
|
| |
pylint fails because it can't import requests_kerberos. This is a
false positive; we already have handling of import failure.
Change-Id: I1641528b8358a8916dfcf4c67e680a03118b3913
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Commit 06c88c8 (merged with pull request #13) added exception
handling:
except Exception as e:
which causes a pylint warning:
W0703: Catching too general exception Exception
However in this case we actually do want to catch all types
of exception because the intention is to make sure pygerrit
doesn't fall over when something unexpected happens.
Add a suppression of this warning. The suppression is only
effective on this particular line; the warning will be raised
again if we do the same thing again somewhere else.
Change-Id: If812d441c1dc625651db34c6d3763cedc98b68a9
|
|\
| |
| |
| |
| |
| |
| |
| | |
* master:
Ensure errors in json parsing doesn't leave everything in a broken state
Avoid busy loop when receiving incoming stream data.
Change-Id: I110d42b45f07c3374c2bf8b87daf03e91d2b02e6
|
| |\
|/ /
| | |
Avoid busy loop when receiving incoming stream data.
|
| | |
|
| |
| |
| |
| |
| | |
Checking whether bytes are available is a non-blocking operation,
causing the receive loop to become a busy loop.
|
| |
| |
| |
| |
| |
| | |
pylint says: "redefinition of unused 'HTTPKerberosAuth' from line 34"
Change-Id: Ie2b8cee42bf08eaa0e9bdab1ef5bf2b23ccee7f5
|
| |
| |
| |
| | |
Change-Id: I16ef5fe0ba55902985c8cfec1d4845a3533ad82c
|
|\ \
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
* master:
Add myself to authors
Add an authors list that contributors can add themselves to
Fix indentation
Reason is optional in abandon and restore changes
Return sortKey from query result, to allow resuming query.
Change-Id: I357d82fee44c47f960000b8db4f7c6d0d95a0993
|
| |\ \
| | | |
| | | | |
Add myself to authors
|
| |/ / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The format of the file is based on the AUTHORS.rst file
in Kenneth Reitz's requests [1].
[1] https://github.com/kennethreitz/requests
Change-Id: I24c7511b79e588107c251708b2c15d9bd574e15b
|
| |\ \
| | | |
| | | | |
Return sortKey from query result, to allow resuming query.
|
| | | | |
|
| | |/
| | |
| | |
| | | |
This is required to be able to retrieve more than 500 changes using the query interface.
|
| |\ \
| | |/
| |/| |
Reason is optional in abandon and restore changes
|
| |/ |
|
| |
| |
| |
| | |
Change-Id: I0db09e7c7eb1fd9fd49bd70371b09a9c61326c35
|
| |
| |
| |
| |
| |
| | |
Refs #9
Change-Id: I335782f5b3126ee00ba8fbe43372c02e7506eb35
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Since commit 730b6b8bc3697f4294edbf3b73cec47b64c625c0 it is not
mandatory to specify the ssh connection parameters in the user's
.ssh/config file.
Update the README file accordingly.
Refs #10
Change-Id: I505c90ee949ba6729baa9fed1e898fe7ed43879f
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Add a --kerberos-auth option that can be used to enable kerberos
authentication.
The option is only present if the HTTPKerberosAuth handler can be
successfully imported the from requests_kerberos module.
Change-Id: Id6c2beca1bf76fbe01f7a6aa8dfccc5844269454
|
|/
|
|
| |
Change-Id: I124054f2ba667f41ba5e916e3832e6a341b4ae96
|
|
|
|
|
|
| |
Add an exmaple script to demonstrate usage of the REST API client.
Change-Id: I4a181c3f10e438e0f119b86584771a422bfbd6eb
|
|
|
|
|
|
|
|
|
|
| |
Instead of trying to abstract the authentication away from the client,
allow the client to provide the authentication handler.
Implement simple handlers for HTTP basic and digest authentication with
credentials from netrc.
Change-Id: Icd6c7d359ecbd441308bc6f67fd19c7f55ebcb8f
|
|
|
|
| |
Change-Id: Ic249ed9de7987d154b575a23856e840796763cfb
|
|
|
|
|
|
|
| |
Add a convenience method to construct the url to be passed to the
server, from the base url and the given endpoint.
Change-Id: I1725a371aa8a82c132039a9614bf20223af591f3
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* master:
Bump version to 0.1.1
Add changelog
Fix #10: Allow to manually specify ssh username and port
Completely refactor the stream event handling
Add missing __repr__ methods on ErrorEvent and UnhandledEvent
Fix initialisation of error event
Fix #11: correct handling of `identityfile` in the ssh config
Allow example script to continue if errors are received
Fix #9: Add a bit more detail in the documentation
Fix #8: Support the "topic-changed" stream event
Fix #7: Support the "reviewer-added" stream event
Fix #6: Support the "merge-failed" stream event
Fix #5: Move json parsing and error handling into the event factory
Improved logging in the example script
Fix #3: Don't treat unhandled event types as errors
Fix #4: Keep event's raw json data in the event object
Add __repr__ methods on event and model classes
Remove redundant `exec_command` method
Fix #2: Establish SSH connection in a thread-safe way
Fix #1: Use select.select() instead of select.poll()
Change-Id: Ib91384b16acca30bfc5aadcdc1131c8bdecef583
|
| |
| |
| |
| | |
Change-Id: Id2a68941ddfbeaee540406e821f1df09408c198f
|