Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-03 Thread reviewboard


Comment #12 on issue 3824 by kdari...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

I found the problem  it was with the git log --pretty=format in function  
get_commit_message. Where git_command was using  --pretty=format:%B which I  
have changed to --pretty=format:%b and hook is working fine for me .


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-02 Thread reviewboard


Comment #9 on issue 3824 by kdari...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

I am using the same model as described here  
https://www.reviewboard.org/docs/manual/2.5/users/getting-started/workflow/ ..  
Is there anything I am missing here? What needs to be done in order to make  
this hook work for me?


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-02 Thread reviewboard


Comment #10 on issue 3824 by trowb...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

Are you stamping your commit messages with 'rbt stamp' before pushing?

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-02 Thread reviewboard


Comment #11 on issue 3824 by kdari...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

Yes I did here is the git log output

$ git log -2
commit a47d5832b1da763e9c9940a678eecd0357c767c2
Author: Pratap kdari...@gmail.com
Date:   Wed Jun 3 09:52:16 2015 +0530

foo12

Reviewed at http://myserver/r/59/

commit 5a6d6a1b7650fc47cac98372dc0b9818438be03a
Author: Pratap kdari...@gmail.com
Date:   Wed Jun 3 09:49:10 2015 +0530

foo11 with stamp

Reviewed at http://myserver/r/58/

I did put some print statement in hook and getting this

remote: review_id_to_commits  defaultdict(type 'list', {0: ['master  
(a47d

583)']})  
remote: print review_request_id 0
remote: I am in ELIF Loop Exiting!! We failed again

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-01 Thread reviewboard


Comment #6 on issue 3824 by kdari...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

Thanks, I have updated to 0.7.3 but now I get review_request_id as 0  
all the time by default. Its not reading the commit message as defined in  
the function get_review_request_id. Also it sounds to me inappropriate to  
get the review request id from commit message how a user will know the id  
before doing rbt post as there will be many other user's in parallel  who  
will be doing commit and push. Please correct me if I am wrong. I do not  
understand this hook behavior. Is there anything else I need to do before  
copying this (pre-receive - git-hook-check-approval)hook or there is still  
some bug in it?


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-01 Thread reviewboard


Comment #7 on issue 3824 by trowb...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

the git-hook-check-approval hook verifies that there's an existing review  
request for the pushed change, which is listed in the commit message, and  
that said review request is approved as per the built-in (or extensible)  
approval rules. It's intended to be used in a pre-commit review model where  
changes are reviewed before they're pushed.


If you're expecting the hook to create review requests for you, that's not  
the right hook.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-06-01 Thread reviewboard


Comment #8 on issue 3824 by kdari...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

Review request exist (used rbt post command to create it) and already  
created but not sure why it is still taking the review_request_id as 0


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-05-22 Thread reviewboard


Comment #5 on issue 3824 by trowb...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

This bug fix will ship in 0.7.3

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-05-22 Thread reviewboard


Comment #4 on issue 3824 by kdari...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

I am facing the same issue RBT version is as below
$ rbt --version
RBTools 0.7.2 (RBTools-0.7.2-1.el6.noarch)

Upgraded rbtools as well but no luck ..


$ git push
Counting objects: 5, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2/2), done.
Writing objects: 100% (3/3), 278 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
remote: Test bug
remote: 20150521-084733.txt
remote: Traceback (most recent call last):
remote:
File /var/lib/gitolite/.gitolite/hooks/common/git-hook-check-approval.py,  
line 80, in module

remote: main()
remote:
File /var/lib/gitolite/.gitolite/hooks/common/git-hook-check-approval

.py, line 52, in main
remote: review_id_to_commits = get_review_id_to_commits_map(lines,  
compiled_regex)
remote:   File /usr/lib/python2.6/site-packages/rbtools/hooks/git.py,  
line 78, in get_review_id_to_commits_map

remote: commit_hashes = get_commit_hashes(old_rev, new_rev)
remote:   File /usr/lib/python2.6/site-packages/rbtools/hooks/git.py,  
line 20, in get_commit_hashes

remote: return execute(git_command, split_lines=True)
remote: TypeError: execute() got an unexpected keyword  
argument 'split_lines' To ssh://gitolite@myserver/test123.git

 ! [remote rejected] master - master (pre-receive hook declined)
error: failed to push some refs to 'ssh://gitolite@myserver/test123.git'


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-04-26 Thread reviewboard

Updates:
Status: Fixed

Comment #3 on issue 3824 by trowb...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

Fixed in release-0.7.x (b349fb7). Thanks!

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-03-27 Thread reviewboard

Updates:
Status: Confirmed
	Labels: Project-RBTools EasyFix Milestone-RBTools-Release0.7.x  
Component-RBTools


Comment #1 on issue 3824 by chip...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

Looks like there's a second execute() function that shouldn't be there,  
which doesn't accept the split_lines argument. Should be an easy fix.


--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.


Re: Issue 3824 in reviewboard: Git hooks not working

2015-03-27 Thread reviewboard


Comment #2 on issue 3824 by tienv2...@gmail.com: Git hooks not working
https://code.google.com/p/reviewboard/issues/detail?id=3824

I got this one

--
You received this message because this project is configured to send all  
issue notifications to this address.

You may adjust your notification preferences at:
https://code.google.com/hosting/settings

--
You received this message because you are subscribed to the Google Groups 
reviewboard-issues group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at http://groups.google.com/group/reviewboard-issues.
For more options, visit https://groups.google.com/d/optout.