GIT: Configuring repos

2011-01-19 Thread Sapna Vempati
Hi Christian,

We have around 200 GIT repos that we need to configure on RB, using the web
interface. Right now for testing I adding a few repos individually.

Is there any other way we can do this from the backend, so it can be done
faster ?

Thanks,
Sapna.

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Re: GIT: Configuring repos

2011-01-19 Thread Christian Hammond
There's nothing we provide to batch-add repositories. There are two possible
solutions though:

1) Write a script that does the HTTP POST to the Add Repository page. I
don't know exactly what the form content would look like, so you'd need to
add some in the web UI and see what gets sent over the wire.
2) Write a Management Command that makes use of our internal Repository
model to create what you need. You'll have to read up on Django Management
Commands, look at our reviewboard/scmtools/models.py file, and have some
familiarity with how that works in Django.

For management commands, you can read the Django docs at
http://docs.djangoproject.com/en/dev/howto/custom-management-commands/

You'd then create a commands directory in your site directory and put the
script there. You can then execute with 'rb-site manage /path/to/site
yourcommand args

Christian

-- 
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com


On Wed, Jan 19, 2011 at 12:30 PM, Sapna Vempati sapnavemp...@gmail.comwrote:

 Hi Christian,

 We have around 200 GIT repos that we need to configure on RB, using the web
 interface. Right now for testing I adding a few repos individually.

 Is there any other way we can do this from the backend, so it can be done
 faster ?

 Thanks,
 Sapna.

 --
 Want to help the Review Board project? Donate today at
 http://www.reviewboard.org/donate/
 Happy user? Let us know at http://www.reviewboard.org/users/
 -~--~~~~--~~--~--~---
 To unsubscribe from this group, send email to
 reviewboard+unsubscr...@googlegroups.comreviewboard%2bunsubscr...@googlegroups.com
 For more options, visit this group at
 http://groups.google.com/group/reviewboard?hl=en

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~--~~~~--~~--~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en