Test program to get the list of the files which are dropped to review board

2015-07-14 Thread vijay bhaskar reddy Yalamuri
Hi Review board team I am writing a test program to find out is there any change of diff files after posting the review request. I thought first I will get the list of files which are posted to the review board and get the corresponding time stamp and compare this time stamp with original defe

Re: Test program to get the list of the files which are dropped to review board

2015-07-14 Thread Christian Hammond
Hi, The diffs/ API is going to give you each diffset. That is, a revision of a diff uploaded to Review Board. Is that what you're looking for, or were you looking for the contents of the entire diff? Or the files contained in the diff? It would be helpful to see what the data is that you have,

Re: Diff is not showing for some of the files

2015-07-14 Thread Christian Hammond
Hi, What kind of repository are you using? What do the temp files referenced in the error message contain? In particular, make sure that the diff is what you expect, that the tmp file matches the expected original source code, and see what the tmp.rej file looks like. Christian  --

Re: Upgrading from 1.6.8 to 2.x

2015-07-14 Thread Christian Hammond
Can you run the following: $ rb-site manage /path/to/site shell >>> from django_evolution.models import Version >>> for v in Version.objects.order_by('pk'): >>>print '%s - %s - %s' % (v.pk, v.evolutions.count(), v.when) That'll give me a sense of what evolutions are applied. There's a hard-to

Re: Upgrading from 1.6.8 to 2.x

2015-07-14 Thread Risha Chheda
I'm not sure if it makes any difference but yesterday I ran the rb-site manage evolve --hint and execute commands. I have attached the output of both of those in the attached document. It didn't seem to make a difference, rb-site upgrade still gives me the same issue. ​ rb-site_evolve

Problem with api-get

2015-07-14 Thread dang.tab
Hello, I am running into the following with trying to extract a list of users:- D:\ws\dev>rbt api-get -d http:///api/users/ -- --start=201 --max-results=200 >>> RBTools 0.7.4 >>> Python 2.7.2 (default, Jun 24 2011, 12:21:10) [MSC v.1500 32 bit (Intel)] >>> Running on Windows-7-6.1.7601-SP1 >>>

Re: Upgrading from 1.6.8 to 2.x

2015-07-14 Thread Christian Hammond
Hi Risha, Hmm, I'm not seeing what I was expecting to see there. It's possible that there's a bug in upgrading to 2.5, due to one of the changes we've made. I'm going to be investigating this. For now, I'd suggest taking a copy of the 1.6 database and upgrading to the latest 2.0.x release instead

Re: Problem with api-get

2015-07-14 Thread Christian Hammond
Hi, Looks like our help output may be wrong. Try it without the extra '--'. I'll make sure this is fixed for the next release. Christian -- Christian Hammond - chip...@chipx86.com Review Board - https://www.reviewboard.org Beanbag, Inc. - https://www.beanbaginc.com On Tue, Jul 14, 2015 at 12:0

Re: Problem with api-get

2015-07-14 Thread dang.tab
Thank you! That worked. However when I then tried the following in python, it returned just the first 25 users only, not 200. from rbtools.api.client import RBClient client = RBClient('http://', username='', password='') root = client.get_root() users = root.get_users("max-results==200") Anoth

Re: Problem with api-get

2015-07-14 Thread Christian Hammond
Hi, You need to do:     users = root.get_users(max_results=200) How are you changing the username/password? Note that you may have to clear the API cache and cookie if switching users within the same process. Christian  -- Christian Hammond - chip...@chipx86.com Review Board - https://www.r

Re: Problem with api-get

2015-07-14 Thread dang.tab
Thank you for the quick response. When I made the suggested change to the "users" statement, I ran into the following problem:- users = root.get_users(max-results=200) SyntaxError: keyword can't be an expression Regarding changing the username/password, I made that change after the script h

Re: Problem with api-get

2015-07-14 Thread Christian Hammond
It needs to be exactly as in my example, with an underscore. Cookies and cache are, by default, stored for scripts. You'll need to disable them in your script if you don't want those enabled. You can see other scripts in RBTools for examples of how this works in response to the --disable-cache-

Re: Problem with api-get

2015-07-14 Thread dang.tab
Perfect! Works correctly now. Thank you very much. On Tuesday, July 14, 2015 at 4:22:14 PM UTC-7, Christian Hammond wrote: > > It needs to be exactly as in my example, with an underscore. > > Cookies and cache are, by default, stored for scripts. You'll need to > disable them in your script if y

Re: Test program to get the list of the files which are dropped to review board

2015-07-14 Thread vijay bhaskar reddy Yalamuri
Hi Team, Thanks for your reply. I just need to find out for corresponding review request, what are the files are associated. I tried below program to find out the files list. But it always give me wrong count. Can you tell me is there any other way to get the proper list of diff file names ?