1946: Would like to be able to create repositories from the command line.

ipv6****@gmai***** (Google Code) (Is this you? Claim this profile.)
March 13, 2011
Hi,

When adding git clones, one has to log in to the reviewboard host machine and create it. Then one has to log into reviewboard UI in a browser to create the repository associated with it.

It would be great if the whole thing could be done from the command line, I can run a shell script then to create the git clone and repository all in one go, without having to go near the browser. (Donr get me wrong, I like the browser, but as a sysadmin going to 2 places when 1 will do is stupid.)

something like:

rb-create-repository --name $name --path $path --mirror $mirror-path --type $type --btu $bug-tracker-url

or similar.

Maybe something already exists, I saw a post a while back that Yahoo! are running things from the command line.(?)
david
#1 david
1.5.4 contains a webapi resource for repository creation, which means you can use a curl command-line to do this. For details, please see http://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/repository-list/#POST
  • +Fixed
#2 ipv6****@gmai***** (Google Code) (Is this you? Claim this profile.)
Great, thanks, off to try it ...