Struct gerritlib::gerrit::Gerrit
[−]
[src]
pub struct Gerrit { /* fields omitted */ }Gerrit structure for management of several gerrit endpoints
Methods
impl Gerrit[src]
fn new<S>(url: S) -> Gerrit where S: Into<String>
Creates a new Gerrit object
The url points to the http endpoint of an gerrit server like
http://localhost:8080/gerrit. All other function append to this url there endpoint pathes
and query parameters.
fn changes(&mut self,
querylist: Option<Vec<String>>,
additional_infos: Option<Vec<String>>)
-> GGRResult<ChangeInfos>
querylist: Option<Vec<String>>,
additional_infos: Option<Vec<String>>)
-> GGRResult<ChangeInfos>
Convenient function to query changes from gerrit server
querylist is used as filter for the call to gerrit. additional_infos gives some more
information of one Change entity.
fn checkout_topic(&mut self, branchname: &str) -> GGRResult<()>
Convenient function to checkout a topic
fn fetch_topic(&mut self,
topicname: &str,
local_branch_name: &str,
force: bool,
tracking_branch_name: Option<&str>)
-> GGRResult<()>
topicname: &str,
local_branch_name: &str,
force: bool,
tracking_branch_name: Option<&str>)
-> GGRResult<()>
Conviention function to fetch topic topicname to branch local_branch_name.
If branch exists and force is true, the branch is moving to new position.