Re: record git branch name in request?

2012-12-13 Thread Christian Hammond
I think it'd make sense for post-review to be able to populate the branch
name with the nearest origin branch, which is the typical pattern. Not sure
about the local branch being used, though.

Internally, custom data can be associated with a review request, but the
API for modifying this isn't there just yet. It needs to be added.

After 1.7, my plan is to start on better repository integration and DVCS
support, which would end up tracking branch information, amongst other
things. I have a post somewhere on reviewboard-dev explaining some of my
thoughts, if you have any specific requirements I should consider in my
plans.

There's no extension that does this to my knowledge, but then again, I
don't think there are many extensions out yet.

Christian

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



On Thu, Dec 13, 2012 at 8:15 AM, Matthew Woehlke
mwoehlke.fl...@gmail.comwrote:

 In order to ease reviews and pushing request updates, I would like to
 record the git branch name of a request, and retrieve it again via a shell
 command. Has anyone done this? Can anyone offer any pointers?

 Coaxing post-review into putting the branch name into the change number
 would be a short term solution (longer term I would rather have the SHA
 there). Another would be an RB extension to add a custom field. In the
 latter case, does anyone have an example of doing this, both in terms of
 the extension, and also how to retrieve the value from the server?

 --
 Matthew

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




Re: record git branch name in request?

2012-12-13 Thread Matthew Woehlke

On 2012-12-13 18:27, Christian Hammond wrote:

I think it'd make sense for post-review to be able to populate the branch
name with the nearest origin branch, which is the typical pattern. Not sure
about the local branch being used, though.


I've been using the existing 'branch' field as the merge target branch 
(i.e. usually master, but might be e.g. release-0.4.x). If we stuck 
the name of the review branch there instead, I'd feel like we have the 
opposite problem, i.e. wanting a field for the merge target branch.



Internally, custom data can be associated with a review request, but the
API for modifying this isn't there just yet. It needs to be added.


I guess I'm raring to go, here. We would *really* like this support 
*soon* (we're at the stage of considering a switch from gerrit to RB, 
and having things like this available would make a better case for RB). 
I'm also more than willing (as I can find time, at least) to try to help 
with this. I'd love to poke around in the extensions API, for example, 
but the docs I've read so far, to be honest, I wasn't able to follow. 
What would really help is a code example or other basis from which to 
start poking around on my own.


(On a related note, one of these days I need to find out if I can send 
you my 'git-rb' script as a possible candidate for upstream inclusion, 
or at least a source of ideas.)



After 1.7, my plan is to start on better repository integration and DVCS
support, which would end up tracking branch information, amongst other
things. I have a post somewhere on reviewboard-dev explaining some of my
thoughts, if you have any specific requirements I should consider in my
plans.


Okay, I'll have to go look this up at some point. The main things I know 
we want, and that I think would be generally applicable, are:


- merge target branch (right now using existing 'branch')
- request branch (missing)
- request SHA (mainly for merge validation; would make some sense to put 
this in existing 'change request')


We're also going to want/need a few local fields, but not things that 
would make sense for inclusion in RB proper.


Ability to view individual commit diffs in a multi-commit request would 
be awesome (you probably know that already) but I expect that's a long 
way off (and gerrit doesn't support it either AFAIK) and not a priority 
for us.


--
Matthew

--
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