Re: Not able to view the posted diff

2013-05-13 Thread bincy

Hi Christain,

Is there any difference in the configuration of cgit and  gitweb in the 
case of  Raw file URL mask

we are using cgit.

Thanks
On Sunday, 12 May 2013 21:58:43 UTC+5, bincy wrote:

 we are using cgit.
 Thanks

   --
  *From:* Christian Hammond chip...@chipx86.com
 *To:* bincy bincy_k_phi...@yahoo.co.in 
 *Cc:* reviewboard@googlegroups.com reviewboard@googlegroups.com 
 *Sent:* Sunday, 12 May 2013 10:46 AM
 *Subject:* Re: Not able to view the posted diff
  
 It looks correct, off-hand. Whether or not it works is another question.

 What are you guys using for the repository browsing? cgit? gitweb? 
 Something else?

 Christian

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


 On Fri, May 10, 2013 at 3:04 AM, bincy bincy_k_phi...@yahoo.co.in wrote:


 Hi Christian,

 This link actually points to a file, where  I made changes and diff 
 generated.


 http://cagit1.caveonetworks.com/git/?p=qa-resources/qa.git;a=blob;f=recipes/mvtaf/mvtaf_latest.bb;h=999c9e60db2a14271820714234cff811c54ae5f8;hb=HEAD

 So in this case, is the value Raw file URL mask: 
 http://cagit1.caveonetworks.**com/git/?p=qa-resources/qa.**
 git;a=blob;f=filename;h=**revisionhttp://cagit1.caveonetworks.com/git/?p=qa-resources/qa.git;a=blob;f=%3Cfilename%3E;h=%3Crevision%3Ecorrect?

 Thanks for the support


 On Friday, 10 May 2013 14:18:11 UTC+5, Christian Hammond wrote:

 It's possible that the path isn't correct then, if you're getting the same 
 result.

 Since I can't view your repository, what I'd suggest is to browse around 
 on the cagit1 server and try to find a URL that allows you to view the raw, 
 blob contents of a file. This should be the basis of the raw file URL.

 The reason we have this in the first place is that Git has no way of 
 fetching a file remotely, given a path and a revision, without doing a full 
 clone. However, there are many web-based solutions for browsing Git 
 repositories, and most provide some URL for fetching the raw contents of a 
 file, given a path and blob SHA1. So we accept such a path, but mask out 
 the filename and revision parts, so that Review Board can fill them in.

 Christian

  -- 

 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com
  
 On May 10, 2013, at 1:54 AM, bincy bincy_k...@yahoo.co.in wrote:

 I have done 
 memcached restart 
 apache2 restart

 But the problem seems to be same.Is there any mistake in path, mirror path 
 or Raw file URL mask.I have some confusion with Raw file URL mask.

 Path :git://cagit1.caveonetworks.**com/qa-resources/qa.git
 Mirror path : ssh://cagit1.caveonetworks.**com/repo/git/qa-resources/qa.**
 git

 Raw file URL mask: http://cagit1.caveonetworks.**
 com/git/?p=qa-resources/qa.**git;a=blob;f=filename;h=**revisionhttp://cagit1.caveonetworks.com/git/?p=qa-resources/qa.git;a=blob;f=%3Cfilename%3E;h=%3Crevision%3E
  




 On Friday, 10 May 2013 13:24:53 UTC+5, Christian Hammond wrote:

 Looks like it's not providing the page you'd expect. It seems to be a 
 listing of all repositories.

 The listing is showing ?p=qa-resources/qa.git, rather than ?p=qa.git. 
 Perhaps that's the issue.

 Note that it's cached these files, so after you change the raw path, 
 you'll probably need to reload memcached.

 Christian

  -- 
 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com
  
 On May 10, 2013, at 1:19 AM, bincy bincy_k...@yahoo.co.in wrote:

 Hi Christian,

 Thanks for your quick response.

 It seems like file fetching is correct.
 I am attaching  the reviewboard.c4cpf1 folder for the reference.Please 
 have a look.

 Thanks
 Bincy



 -- 
 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...@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
 --- 
 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.
 For more options, visit 
 https://groups.google.com/**groups/opt_outhttps://groups.google.com/groups/opt_out
 .
  
  
 reviewboard.c4cpf1.tar



 -- 
 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/
 -~--~~~~--**~~--~--~---
 

Re: Not able to view the posted diff

2013-05-13 Thread bincy
Hi Christian,

This format does not seems to be matching with my git , because I am not 
able to upload the diff.

Also the temp file i (the one that starts with tmp but doesn't end with 
-new).  looks like the a webpage.(xml format). Any guess?


Thanks for your support
Bincy

On Monday, 13 May 2013 12:41:08 UTC+5, Christian Hammond wrote:

 Yes, there's a big difference. The URLs are very specific to the service, 
 and to your configuration.

 Every time you try a new raw file URL mask, you'll need to reset your 
 cache and try to view again. When you see the error, ssh into the server 
 and check the temp directory it lists, and see what the temp file is (the 
 one that starts with tmp but doesn't end with -new). See if it looks 
 like the source code, or if it looks like a webpage.

 Btw, you're sure this is cgit? cgit usually has a very different format 
 for URLs. Try what's in our docs:

 http://yourserver/browser/projname/blob/filename?id=revision

 Or something like that. Again, you'll need to browse around your cgit and 
 see what the URL looks like. It can vary.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com javascript:
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com
  
 On May 13, 2013, at 12:35 AM, bincy bincy_k...@yahoo.co.in javascript: 
 wrote:


 Hi Christain,

 Is there any difference in the configuration of cgit and  gitweb in the 
 case of  Raw file URL mask

 we are using cgit.

 Thanks
 On Sunday, 12 May 2013 21:58:43 UTC+5, bincy wrote:

 we are using cgit.
 Thanks

   --
  *From:* Christian Hammond chi...@chipx86.com javascript:
 *To:* bincy bincy_k...@yahoo.co.in javascript: 
 *Cc:* revie...@googlegroups.com javascript: 
 revie...@googlegroups.com javascript: 
 *Sent:* Sunday, 12 May 2013 10:46 AM
 *Subject:* Re: Not able to view the posted diff
  
 It looks correct, off-hand. Whether or not it works is another question.

 What are you guys using for the repository browsing? cgit? gitweb? 
 Something else?

 Christian

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


 On Fri, May 10, 2013 at 3:04 AM, bincy bincy_k...@yahoo.co.injavascript:
  wrote:


 Hi Christian,

 This link actually points to a file, where  I made changes and diff 
 generated.


 http://cagit1.caveonetworks.com/git/?p=qa-resources/qa.git;a=blob;f=recipes/mvtaf/mvtaf_latest.bb;h=999c9e60db2a14271820714234cff811c54ae5f8;hb=HEAD

 So in this case, is the value Raw file URL mask: 
 http://cagit1.caveonetworks.**com/git/?p=qa-resources/qa.**
 git;a=blob;f=filename;h=**revisionhttp://cagit1.caveonetworks.com/git/?p=qa-resources/qa.git;a=blob;f=%3Cfilename%3E;h=%3Crevision%3Ecorrect?

 Thanks for the support


 On Friday, 10 May 2013 14:18:11 UTC+5, Christian Hammond wrote:

 It's possible that the path isn't correct then, if you're getting the 
 same result.

 Since I can't view your repository, what I'd suggest is to browse around 
 on the cagit1 server and try to find a URL that allows you to view the raw, 
 blob contents of a file. This should be the basis of the raw file URL.

 The reason we have this in the first place is that Git has no way of 
 fetching a file remotely, given a path and a revision, without doing a full 
 clone. However, there are many web-based solutions for browsing Git 
 repositories, and most provide some URL for fetching the raw contents of a 
 file, given a path and blob SHA1. So we accept such a path, but mask out 
 the filename and revision parts, so that Review Board can fill them in.

 Christian

  -- 

 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com
  
 On May 10, 2013, at 1:54 AM, bincy bincy_k...@yahoo.co.in wrote:

 I have done 
 memcached restart 
 apache2 restart

 But the problem seems to be same.Is there any mistake in path, mirror 
 path or Raw file URL mask.I have some confusion with Raw file URL mask.

 Path :git://cagit1.caveonetworks.**com/qa-resources/qa.git
 Mirror path : ssh://cagit1.caveonetworks.**com/repo/git/qa-resources/qa.*
 *git

 Raw file URL mask: http://cagit1.caveonetworks.**
 com/git/?p=qa-resources/qa.**git;a=blob;f=filename;h=**revisionhttp://cagit1.caveonetworks.com/git/?p=qa-resources/qa.git;a=blob;f=%3Cfilename%3E;h=%3Crevision%3E
  




 On Friday, 10 May 2013 13:24:53 UTC+5, Christian Hammond wrote:

 Looks like it's not providing the page you'd expect. It seems to be a 
 listing of all repositories.

 The listing is showing ?p=qa-resources/qa.git, rather than ?p=qa.git. 
 Perhaps that's the issue.

 Note that it's cached these files, so after you change the raw path, 
 you'll probably need to reload memcached.

 Christian

  -- 
 Christian Hammond - chi...@chipx86.com
 Review Board - http://www.reviewboard.org
 Beanbag, Inc. - http://www.beanbaginc.com
  
 On May 10, 2013, at 1:19 AM, bincy 

Website appears to be down

2013-05-13 Thread rfs
I'm getting a 502 error on all pages under www.reviewboard.org, though 
downloads site seems to work:

$ wget http://www.reviewboard.org
--2013-05-13 08:16:11--  http://www.reviewboard.org/
Resolving www.reviewboard.org (www.reviewboard.org)... 54.243.231.149
Connecting to www.reviewboard.org 
(www.reviewboard.org)|54.243.231.149|:80... connected.
HTTP request sent, awaiting response... 502 Bad Gateway
2013-05-13 08:16:12 ERROR 502: Bad Gateway.

Cheers,
-Ralph

-- 
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
--- 
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: need help hooking up rb to cgit

2013-05-13 Thread A.M.
On Sun, 12 May 2013 19:21:11 -0700, Silurian Ireviken
silurianirevi...@gmail.com wrote:
 I've gotten reviewboard working with my git repo when I keep around a
local
 copy of the checkout, and update it frequently.
 
 I'm trying to move to using a url to cgit
 
 My cgit setup is pretty unfriendly.
 
 any hints on how to make this work or debug this?
 
 So here is the url I can use to see a file in my repo in cgi, in 'plain'
 mode
 

http://search.internet.com/commit/cf8b55f2ef64daf5d148f36ce01a70715c512f68/commit/code_management_tools/add_file_tag.pl?id=7bded99c9be22dccb9a5609f5f975f2faa7753d7
 
 so the file is code_management_tools/add_file_tag.pl and the version
 is 7bded99c9be22dccb9a5609f5f975f2faa7753d7
 
 In reviewboard admin I have set:
 
 ( this is the url I use to clone from command line )
 Path:  ssh://

operati...@git.internet.com/internet.com/data/git/push/com.internet.push.perl.git
 
 Raw file URL mask:

http://search.internet.com/commit/cf8b55f2ef64daf5d148f36ce01a70715c512f68/plain/
 filename?id=revision
 

This is most certainly the wrong URL. Your email doesn't make it even clear
that you are using cgit which is this: http://hjemli.net/git/cgit/ Even if
you have a similar system which is not cgit, you might still be able to get
this to work.

Here is what we use successfully:

http://cgit-host/cgit/some_project/blob/filename?id=revision

Where some_project is obviously your project's name. 

The Reviewboard docs recommend using id2. I don't know why it recommends
this; I looked into the cgit source code and id2 is just wrong for this
use case. 

Be aware that Reviewboard will continue to insist that the ssh path to the
repository is valid even thought RB should not/will not need that URL. To
work around this, you can change the raw file URL mask in the database
directly or point the ssh URL to a junk repository.

Cheers,
M

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




Association between a review and Ship it at the RBClient level

2013-05-13 Thread Jody
I'm confused on how to find if a submitted review has a ship it 
associated it with it.  Does someone have a python fragment that shows how 
to extract this information along with the person who voted to press ship 
it?

Here's what I have so far:

from rbtools.api.client import RBClient

client = RBClient(http://iternal_url;)
root = client.get_root()

requests = root.get_review_requests(status=submitted)
review = requests[0]
print Review status =, review.status
print Review description =, review.description

submitter = review.get_submitter()
print Submitter =, submitter.fullname

target_groups = review.target_groups
for group in target_groups:
print \tGroup =, group.title

target_people = review.target_people
for people in target_people:
print \tPeople =, people.title

-- 
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
--- 
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: Association between a review and Ship it at the RBClient level

2013-05-13 Thread A.M.
On Mon, 13 May 2013 09:42:24 -0700 (PDT), Jody josephwinston...@gmail.com
wrote:
 I'm confused on how to find if a submitted review has a ship it 
 associated it with it.  Does someone have a python fragment that shows
how 
 to extract this information along with the person who voted to press
ship 
 it?
 
 Here's what I have so far:
 
 from rbtools.api.client import RBClient
 
 client = RBClient(http://iternal_url;)
 root = client.get_root()
 
 requests = root.get_review_requests(status=submitted)
 review = requests[0]
 print Review status =, review.status
 print Review description =, review.description
 
 submitter = review.get_submitter()
 print Submitter =, submitter.fullname
 
 target_groups = review.target_groups
 for group in target_groups:
 print \tGroup =, group.title
 
 target_people = review.target_people
 for people in target_people:
 print \tPeople =, people.title


The review object itself has the ship_it attribute which you can see here:
http://www.reviewboard.org/docs/manual/dev/webapi/2.0/resources/review/

Above, you named review to be the first review request object which is
probably why you are confused. The review request is opened by the
submitter and contains zero or more reviews. Once you have the review
object, use its link to the user object to get the poster for that review.
There are no specific python docs for these tasks, but I agree it certainly
would be nice to have more examples.

Cheers,
M


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