Re: rbt post not working with revision-range and other options in git for code already pushed to the remote

2014-09-05 Thread Jillala Srinivas
Thank you Chris, 

As suggested, configured .reviewboradrc for the repo. Still not able to 
create review for the code already committed to remote. 
After these changes I am facing the different error message:

rbt post ba53c49..30126f8c --guess-summary --guess-description 
--tracking-branch origin/master --server http://example.com/
CRITICAL: Too many revisions specified


Is there something still missing? Please suggest.

Regds,
Srinivas J.


On Wednesday, September 3, 2014 9:36:59 PM UTC+3, Christian Hammond wrote:

 Hi,

 Do you have a .reviewboardrc configured for that repository?

 We recommend creating one, and using that to set the server name and the 
 repository name, in order to ensure that RBTools can quickly and 
 consistently locate the Review Board server and repository you want to use.


 https://www.reviewboard.org/docs/rbtools/dev/rbt/configuration/#repository-configuration

 Christian

 -- 
 Christian Hammond - chri...@beanbaginc.com javascript:
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com

 On September 3, 2014 at 12:00:00 AM, Jillala Srinivas (
 sriniva...@gmail.com javascript:) wrote:

 Hi,  

 Thanks. Unfortunately there are no debug messages are displayed for the 
 failed cases. 
 Review Board 1.7.26

  rbt post 986fb30aae..58184a45a --guess-summary --guess-description 
 --server http://xyz.abc/ --debug
  Unable to find a Review Board server for this source code tree.


 On Wednesday, September 3, 2014 1:44:54 AM UTC+3, David Trowbridge wrote: 

 It would be very helpful if you could give us the --debug output for the 
 commands that fail (rather than the command that succeeds). 

 -David
  

 On Tue, Sep 2, 2014 at 6:54 AM, Jillala Srinivas sriniva...@gmail.com 
 wrote:

 Hi ,  

 We are using  git as Version Control and we are using the  rbt tool for 
 raising the review requests.

 Version info
 RBTools 0.6.2
 git version 1.8.3.1


 1. rbt post working fine for commits which are not pushed to remote.
 2. But same fails when we try to raise review with already pushed code. 
 Below are the various scenarios tried for this:
 1. rbt post --guess-summary --guess-description 
 --tracking-branch origin/master --revision-range= 986fb30aae..58184a45a 
 --server Myreviewboradserver
 2. rbt post R1..R2 --guess-summary --guess-description
 3. rbt post R1..R2 --guess-summary --guess-description 
 --parent=origin/master

 In all above cases, it is failing by saying the error message: Unable 
 to find a Review Board server for this source code tree.


 But on the same working copy, if we generate review before pushing the 
 commits to remote, it worked as expected:
  [srij@lccscm Demo]$ rbt post --guess-summary --guess-description 
 --server http://xyz.com/ --debug
  RBTools 0.6.2
  Python 2.7.5 (default, Nov 12 2013, 16:18:42)
 [GCC 4.8.2 20131017 (Red Hat 4.8.2-1)]
  Running on 
 Linux-3.11.6-201.fc19.x86_64-x86_64-with-fedora-19-Schrödingerâs_Cat
  Home = /home/srij
  Current directory = /home/srij/gitlab/Demo
  Checking for a Subversion repository...
  Running: svn info --non-interactive
  Command exited with rc 1: ['svn', 'info', '--non-interactive']
 svn: E155007: '/home/srij/gitlab/Demo' is not a working copy
 ---
  Checking for a Git repository...
  Running: git rev-parse --git-dir
  Running: git config core.bare
  Running: git rev-parse --show-toplevel
  Running: git symbolic-ref -q HEAD
  Running: git config --get branch.master.merge
  Running: git config --get branch.master.remote
  Running: git config --get remote.origin.url
  repository info: Path: g...@xyz.abc/Demo.git, Base path: , Supports 
 changesets: False
  Making HTTP GET request to http://xyz.abc/api/
  Making HTTP GET request to http://xyz.abc/api/info/
  Running: git rev-parse refs/heads/master
  Running: git merge-base 30126f8c24bc30bc7c4f68b03a913f16ce4ed007 
 origin/master
  Running: git rev-parse 8a727c5917e783ca82a22a2bdbb7021ea1a05469
  Running: git status --porcelain --untracked-files=no
  Running: git diff --no-color --full-index --ignore-submodules 
 8a727c5917e783ca82a22a2bdbb7021ea1a05469..30126f8c24bc30bc7c4f68b03a913f16ce4ed007
  
 -M
  Running: git log --reverse --pretty=format:%s%n%n%b 
 ^8a727c5917e783ca82a22a2bdbb7021ea1a05469 
 30126f8c24bc30bc7c4f68b03a913f16ce4ed007
  Making HTTP GET request to http://xyz.abc/api/review-requests/
  Making HTTP POST request to http://xyz.abc/api/review-requests/
  Making HTTP GET request to 
 http://xyz.abc/api/review-requests/422/diffs/
  Making HTTP POST request to 
 http://xyz.abc/api/review-requests/422/diffs/
  Making HTTP GET request to 
 http://xyz.abc/api/review-requests/422/draft/
  Making HTTP PUT request to 
 http://xyz.abc/api/review-requests/422/draft/
 Review request #422 posted.

  http://xyz.abc/r/422/
  http://xyz.abc/r/422/diff/
  

 What is wrong with this? How can I raise review request for already 
 commited code?

 Regds,
 Srinivas J

rbt post not working with revision-range and other options in git for code already pushed to the remote

2014-09-02 Thread Jillala Srinivas
Hi , 

We are using  git as Version Control and we are using the  rbt tool for 
raising the review requests.

Version info
RBTools 0.6.2
git version 1.8.3.1


1. rbt post working fine for commits which are not pushed to remote.
2. But same fails when we try to raise review with already pushed code. 
Below are the various scenarios tried for this:
1. rbt post --guess-summary --guess-description 
--tracking-branch origin/master --revision-range= 986fb30aae..58184a45a 
--server Myreviewboradserver
2. rbt post R1..R2 --guess-summary --guess-description
3. rbt post R1..R2 --guess-summary --guess-description 
--parent=origin/master

In all above cases, it is failing by saying the error message: Unable to 
find a Review Board server for this source code tree.


But on the same working copy, if we generate review before pushing the 
commits to remote, it worked as expected:
[srij@lccscm Demo]$ rbt post --guess-summary --guess-description --server 
http://xyz.com/ --debug
 RBTools 0.6.2
 Python 2.7.5 (default, Nov 12 2013, 16:18:42)
[GCC 4.8.2 20131017 (Red Hat 4.8.2-1)]
 Running on 
Linux-3.11.6-201.fc19.x86_64-x86_64-with-fedora-19-Schrödingerâs_Cat
 Home = /home/srij
 Current directory = /home/srij/gitlab/Demo
 Checking for a Subversion repository...
 Running: svn info --non-interactive
 Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/home/srij/gitlab/Demo' is not a working copy
---
 Checking for a Git repository...
 Running: git rev-parse --git-dir
 Running: git config core.bare
 Running: git rev-parse --show-toplevel
 Running: git symbolic-ref -q HEAD
 Running: git config --get branch.master.merge
 Running: git config --get branch.master.remote
 Running: git config --get remote.origin.url
 repository info: Path: g...@xyz.abc/Demo.git, Base path: , Supports 
changesets: False
 Making HTTP GET request to http://xyz.abc/api/
 Making HTTP GET request to http://xyz.abc/api/info/
 Running: git rev-parse refs/heads/master
 Running: git merge-base 30126f8c24bc30bc7c4f68b03a913f16ce4ed007 
origin/master
 Running: git rev-parse 8a727c5917e783ca82a22a2bdbb7021ea1a05469
 Running: git status --porcelain --untracked-files=no
 Running: git diff --no-color --full-index --ignore-submodules 
8a727c5917e783ca82a22a2bdbb7021ea1a05469..30126f8c24bc30bc7c4f68b03a913f16ce4ed007
 
-M
 Running: git log --reverse --pretty=format:%s%n%n%b 
^8a727c5917e783ca82a22a2bdbb7021ea1a05469 
30126f8c24bc30bc7c4f68b03a913f16ce4ed007
 Making HTTP GET request to http://xyz.abc/api/review-requests/
 Making HTTP POST request to http://xyz.abc/api/review-requests/
 Making HTTP GET request to http://xyz.abc/api/review-requests/422/diffs/
 Making HTTP POST request to 
http://xyz.abc/api/review-requests/422/diffs/
 Making HTTP GET request to http://xyz.abc/api/review-requests/422/draft/
 Making HTTP PUT request to http://xyz.abc/api/review-requests/422/draft/
Review request #422 posted.

http://xyz.abc/r/422/
http://xyz.abc/r/422/diff/


What is wrong with this? How can I raise review request for already 
commited code?

Regds,
Srinivas J

 

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Error while setting up git repos in ReviewBoard by using Raw file URL mask:Unable to authenticate against this repository using one of the supported authentication types.

2013-12-05 Thread Jillala Srinivas
Thanx for your reply. I enabled logs and I got the following error messages:
===
2013-12-05 14:32:50,043 - DEBUG -  - using kex diffie-hellman-group1-sha1; 
server key type ssh-rsa; cipher: local aes128-ctr, remote aes128-ctr; mac: 
local hmac-sha1, remote hmac-sha1; compression: local none, remote none
2013-12-05 14:32:50,058 - DEBUG -  - Switch to new keys ...
2013-12-05 14:32:50,074 - DEBUG -  - Trying SSH key 
e5ab730789d6c2de4f45e38602024cf9
2013-12-05 14:32:50,098 - DEBUG -  - userauth is OK
2013-12-05 14:32:50,109 - INFO -  - Authentication (publickey) failed.
2013-12-05 14:32:50,139 - DEBUG -  - Trying discovered key 
e5ab730789d6c2de4f45e38602024cf9 in /var/www/LCCReview/data/.ssh/id_rsa
2013-12-05 14:32:50,139 - DEBUG -  - userauth is OK
2013-12-05 14:32:50,148 - INFO -  - Authentication (publickey) failed.
2013-12-05 14:32:50,150 - DEBUG -  - userauth is OK
2013-12-05 14:32:50,150 - INFO -  - Authentication (password) failed.
2013-12-05 14:32:50,250 - DEBUG -  - EOF in transport thread
===

First I tried by using the key by generated from reviewboard admin (UI) and 
given access for repos in gitolite conf. This time I got same error meesage.
Second I tried with the key from $REVIEWBOARD_PATH/data/.ssh/id_rsa. This 
time also it failed with the same error message.

Note: I am using gitolite for hosting repos, and I had given  admin 
username (one I created while installing reviewboard) in gitolite conf 
file. Is this correct?

regds, 
Srinivas J

On Wednesday, December 4, 2013 12:56:54 PM UTC+2, Christian Hammond wrote:

 This generally means that the SSH key wasn't accepted.

 Can you check the reviewboard.log file (enable logging if it's turned off 
 and try again) and see if there's any more information along with this 
 error?

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com


 On Wed, Dec 4, 2013 at 2:30 AM, Jillala Srinivas 
 sriniva...@gmail.comjavascript:
  wrote:


 I got the following error :

- Unable to authenticate against this repository using one of the 
supported authentication types.

  This error I got when I tried to setup by using the RAW file URL mask.

 On Tuesday, December 3, 2013 12:29:26 PM UTC+2, Jillala Srinivas wrote:

 Hi, 

 I setup ReviewBoard to work with git. I'm using gitolite to host the git 
 repos. ReviewBoard is working when I have local clone and I have script for 
 synching repos.
 However, I'm trying to setup by giving the Raw url mask of the gitweb, 
 it's giving the above said error.

 Working setup :
 Hosting Service:Custom
 Repository type:Git
 Path:/path/to/local_cloned_repo/.git
 Mirror Path:  g...@example.com:repo.git


 Not working Setup:
 Hosting Service:  Custom
 Repository type:  Git
 Path:  g...@example.com:repo.git   (i.e., output of 
  git remote show origin)
 Mirror Path  g...@example.com:repo.git   (i.e., output of 
  git remote show origin)
 Raw file URL mask:  http://eaxmple.com/gitweb/?p=repo.git

 Note: I have uploaded SSH public key of RB into git server and I have 
 given access rights for repos.

 Can anyone give some pointers on where I am doing wrong? How to setup 
 this to work with Raw file URL mask.

 Thanks and regds, 
 Srinivas Reddy

  -- 
 Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
 ---
 Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
 ---
 Happy user? Let us know at http://www.reviewboard.org/users/
 --- 
 You received this message because you are subscribed to the Google Groups 
 reviewboard group.
 To unsubscribe from this group and stop receiving emails from it, send an 
 email to reviewboard...@googlegroups.com javascript:.
 For more options, visit https://groups.google.com/groups/opt_out.




-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Error while setting up git repos in ReviewBoard by using Raw file URL mask:Unable to authenticate against this repository using one of the supported authentication types.

2013-12-04 Thread Jillala Srinivas

I got the following error :
   
   - Unable to authenticate against this repository using one of the 
   supported authentication types.

 This error I got when I tried to setup by using the RAW file URL mask.

On Tuesday, December 3, 2013 12:29:26 PM UTC+2, Jillala Srinivas wrote:

 Hi, 

 I setup ReviewBoard to work with git. I'm using gitolite to host the git 
 repos. ReviewBoard is working when I have local clone and I have script for 
 synching repos.
 However, I'm trying to setup by giving the Raw url mask of the gitweb, 
 it's giving the above said error.

 Working setup :
 Hosting Service:Custom
 Repository type:Git
 Path:/path/to/local_cloned_repo/.git
 Mirror Path:  g...@example.com:repo.git


 Not working Setup:
 Hosting Service:  Custom
 Repository type:  Git
 Path:  g...@example.com:repo.git   (i.e., output of 
  git remote show origin)
 Mirror Path  g...@example.com:repo.git   (i.e., output of  git 
 remote show origin)
 Raw file URL mask:  http://eaxmple.com/gitweb/?p=repo.git

 Note: I have uploaded SSH public key of RB into git server and I have 
 given access rights for repos.

 Can anyone give some pointers on where I am doing wrong? How to setup this 
 to work with Raw file URL mask.

 Thanks and regds, 
 Srinivas Reddy


-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Error while setting up git repos in ReviewBoard by using Raw file URL mask:Unable to authenticate against this repository using one of the supported authentication types.

2013-12-03 Thread Jillala Srinivas
Hi, 

I setup ReviewBoard to work with git. I'm using gitolite to host the git 
repos. ReviewBoard is working when I have local clone and I have script for 
synching repos.
However, I'm trying to setup by giving the Raw url mask of the gitweb, it's 
giving the above said error.

Working setup :
Hosting Service:Custom
Repository type:Git
Path:/path/to/local_cloned_repo/.git
Mirror Path:  g...@example.com:repo.git


Not working Setup:
Hosting Service:  Custom
Repository type:  Git
Path:  g...@example.com:repo.git   (i.e., output of 
 git remote show origin)
Mirror Path  g...@example.com:repo.git   (i.e., output of  git 
remote show origin)
Raw file URL mask:  http://eaxmple.com/gitweb/?p=repo.git

Note: I have uploaded SSH public key of RB into git server and I have given 
access rights for repos.

Can anyone give some pointers on where I am doing wrong? How to setup this 
to work with Raw file URL mask.

Thanks and regds, 
Srinivas Reddy

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


review request Url is not generating with the port number.

2013-10-25 Thread Jillala Srinivas
Hi, 

I am using Review board for code review and using the gitolite for hosting 
the git repositories. The whole stuff is working fine, but with some minor 
problem. 
I am running the reviewboard site on the port  and reviewboard url 
looks like: http://www.example.net:/reviews.

Created review request by using post-review and published the review 
request. I am getting review request url as 
http://www.example.net/reviews/r/1. But I need the url as 
http://www.example.net:/reviews/r/1.

Here Port number is missing in the url. How to fix this? Any idea.


Thanks and regds,
Srinivas J

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.