Re: API Error 224 - The specified diff file could not be parsed.

2017-02-09 Thread fxp
Actually looks like I was wrong. 
After more digging - the issue was because the bare git repo was out of 
sync on the reviewboard server.
Doing a git fetch and then rbt post made it without issues 


On Thursday, February 9, 2017 at 12:22:24 PM UTC-5, fxp wrote:
>
>
> I'm getting the exact same error. 
> Ubuntu 16.04
> RBT 0.7.7
> RB 2.5.2 
>
> It's an unfixed bug in RB
>
> >>> Got API Error 224 (HTTP code 400): The specified diff file could not 
> be parsed.
> >>> Error data: {u'stat': u'fail', u'reason': u'error: unable to find 
> b6387b56c32cbbc8e0731a1ca3436c5b7d04f3a5\nfatal: git cat-file 
> b6387b56c32cbbc8e0731a1ca3436c5b7d04f3a5: bad file\n', u'err': {u'msg': u'The 
> specified diff file could not be parsed.', u'code': 224}}
> Traceback (most recent call last):
>
>
>
> Hope there's a fix
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: API Error 224 - The specified diff file could not be parsed.

2017-02-09 Thread fxp

I'm getting the exact same error. 
Ubuntu 16.04
RBT 0.7.7
RB 2.5.2 

It's an unfixed bug in RB

>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> Error data: {u'stat': u'fail', u'reason': u'error: unable to find 
b6387b56c32cbbc8e0731a1ca3436c5b7d04f3a5\nfatal: git cat-file 
b6387b56c32cbbc8e0731a1ca3436c5b7d04f3a5: bad file\n', u'err': {u'msg': u'The 
specified diff file could not be parsed.', u'code': 224}}
Traceback (most recent call last):



Hope there's a fix

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2016-06-20 Thread edonwei
Hi all,

I'm also facing this problem... I'm using latest Reviewboard 2.5.5 . Any 
solution?

===
>>> Making HTTP POST request to 
http://192.168.0.170:8010/api/validation/diffs/ >>> Got API Error 224 (HTTP 
code 400): fatal: Not a git repository: 'None'  >>> Error data: {u'stat': 
u'fail', u'err': {u'msg': u"fatal: Not a git repository: 'None'\n", 
u'code': 224}} Traceback (most recent call last):   File 
"/usr/local/bin/rbt", line 9, in  
load_entry_point('RBTools==0.7.6.dev0', 'console_scripts', 'rbt')()   File 
"/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 133, in 
main command.run_from_argv([RB_MAIN, command_name] + args)   File 
"/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", line 629, 
in run_from_argv exit_code = self.main(*args) or 0   File 
"/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 756, in 
main (msg_prefix, e)) rbtools.commands.CommandError: Error validating 
diff  fatal: Not a git repository: 'None'  (HTTP 400, API Error 224)

Thanks,
Huan




在 2015年2月10日星期二 UTC+8上午9:49:44,Jonathan Anderson写道:
>
> I am getting the following error whenever I attempt to "rbt post" a change 
> that contains updates to an existing file.
> Posting a change containing a single new file works as expected.
>
> I have attached a fiddler archive with the reviewboard request.
>
> I am using an ssh git repository. I am accessing the reviewboard instance 
> from Windows 8.1 using RBTools for Windows.
>
>
>
> $ rbt post --debug
> >>> RBTools 0.7
> >>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
> (Intel)]
> >>> Running on Windows-8-6.2.9200
> >>> Home = C:\Users\janderson\AppData\Roaming
> >>> Current directory = c:\work
> >>> Checking for a Subversion repository...
> >>> Unable to execute "svn help": skipping SVN
> >>> 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.test.merge
> >>> Running: git config --get branch.test.remote
> >>> Running: git config --get remote.origin.url
> >>> repository info: Path: git@q-git:/opt/git/quosal.git, Base path: , 
> Supports changesets: False
> >>> Making HTTP GET request to http://codereview/api/
> >>> Cached response for HTTP GET http://codereview/api/ expired and was 
> modified
> >>> Running: git rev-parse refs/heads/test
> >>> Running: git merge-base 7c9e3a6183f52cd33e4a203c6d53b46b6748c7af 
> origin/master
> >>> Running: git rev-parse dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4
> >>> Running: git status --porcelain --untracked-files=no
> >>> Running: git diff --no-color --full-index --ignore-submodules -M 
> --no-ext-diff 
> dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4..7c9e3a6183f52cd33e4a203c6d53b46b6748c7af
> >>> Making HTTP GET request to http://codereview/api/validation/
> >>> Cached response for HTTP GET http://codereview/api/validation/ 
> expired and was not modified
> >>> Making HTTP GET request to http://codereview/api/validation/diffs/
> >>> Cached response for HTTP GET http://codereview/api/validation/diffs/ 
> expired and was modified
> >>> Making HTTP POST request to http://codereview/api/validation/diffs/
> >>> Got API Error 224 (HTTP code 400): The specified diff file could not 
> be parsed.
> >>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git 
> repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not 
> be parsed.', u'code': 224}}
> Traceback (most recent call last):
>   File "c:/Program Files (x86)/RBTools/Python27/Scripts/rbt-script.py", 
> line 8, in 
> load_entry_point('RBTools==0.7', 'console_scripts', 'rbt')()
>   File "c:\Program Files 
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\main.py",
>  
> line 133, in main
> command.run_from_argv([RB_MAIN, command_name] + args)
>   File "c:\Program Files 
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\__init__.py",
>  
> line 538, in run_from_argv
> exit_code = self.main(*args) or 0
>   File "c:\Program Files 
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\post.py",
>  
> line 662, in main
> (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>
> The specified diff file could not be parsed. (HTTP 400, API Error 224)
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


API Error 224 - The specified diff file could not be parsed.

2016-02-14 Thread Yoni Gittelman
Hi,
When I try to generate a code review for a certain branch I get this error, 
for other branches I don't. 

>>> RBTools 0.7.5
>>> Python 2.7.11 (default, Jan 22 2016, 08:29:18)
[GCC 4.2.1 Compatible Apple LLVM 7.0.2 (clang-700.1.81)]
>>> Running on Darwin-15.3.0-x86_64-i386-64bit
>>> Home = /Users/SA
>>> Current directory = /Users/SA/src/sapi
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info /var/www/html/rb01/data/repositories
/sapi/.git
>>> Command exited with rc 1: ['svn', '--non-interactive', u'info', 
'/var/www/html/rb01/data/repositories/sapi/.git']
svn: E155007: '/var/www/html/rb01/data/repositories/sapi/.git' 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 ***.merge
>>> Running: git config --get ***.remote
>>> Running: git config --get remote.origin.url
>>> repository info: Path: /var/www/html/rb01/data/repositories/sapi/.git, 
Base path: , Supports changesets: False
>>> Making HTTP GET request to ***
>>> Running: git rev-parse refs/heads/
>>> Running: git merge-base 525bf401c19ea8da6872fe3c39cadd56084dae07 
origin/master
>>> Running: git rev-parse 156168eb97cd9d4bc0eff74d70e68438e81aa8c9
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git rev-parse --git-dir
>>> Running: git version
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
156168eb97cd9d4bc0eff74d70e68438e81aa8c9..525bf401c19ea8da6872fe3c39cadd56084dae07
>>> Making HTTP GET request to ***/validation/diffs/
>>> Cached response for HTTP GET */validation/diffs/ expired and was 
modified
>>> Making HTTP POST request to */api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> Error data: {u'stat': u'fail', u'reason': u'error: unable to find 
036dc4f9209437e7d28b4fd12e561d8e43f5b618\nfatal: git cat-file 
036dc4f9209437e7d28b4fd12e561d8e43f5b618: bad file\n', u'err': {u'msg': u'The 
specified diff file could not be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 11, in 
sys.exit(main())
  File "/usr/local/lib/python2.7/site-packages/rbtools/commands/main.py", 
line 133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "/usr/local/lib/python2.7/site-packages/rbtools/commands/__init__.py"
, line 622, in run_from_argv
exit_code = self.main(*args) or 0
  File "/usr/local/lib/python2.7/site-packages/rbtools/commands/post.py", 
line 754, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff


The specified diff file could not be parsed. (HTTP 400, API Error 224)

System info: OSX 10.11.3 | RBTools 0.7.5 |Python 2.7.11.
ReviewBoard: 2.5.2.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed

2015-07-02 Thread David Trowbridge
The actual error is buried in there: "Authentication failed when talking to
the Subversion repository"

What this means is that the SVN repository configured in the Review Board
admin page doesn't have the correct credentials.

-David

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Error: The specified diff file could not be parsed

2015-07-02 Thread dongxiang luo
Below is my command:

rbt post --debug --description "test desc" --summary "test summary" 
 --target-groups=gameDesign   47515


If the revision contains a added file , the command can work.

If the revision contains a updated file , it reports error:




>>> RBTools 0.7.4
>>> Python 2.6.6 (r266:84292, Feb 22 2013, 00:00:18) 
[GCC 4.4.7 20120313 (Red Hat 4.4.7-3)]
>>> Running on Linux-2.6.32-358.el6.x86_64-x86_64-with-centos-6.4-Final
>>> Home = /root
>>> Current directory = /var/www/html/repo/data
>>> Running: git version
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Running: diff --version
>>> Running: svn --non-interactive --version -q
>>> repository info: Path: http://mydevsvn.net/M9, Base path: 
/server/trunk/data, Supports changesets: False
>>> Making HTTP GET request to http://192.168.180.33/api/
>>> Making HTTP GET request to http://192.168.180.33/api/repositories/
>>> Cached response for HTTP GET http://192.168.180.33/api/repositories/ 
expired and was modified
>>> Running: svn --non-interactive log --xml -r 47515 -l 1
>>> Running: svn --non-interactive info
>>> Running: diff --version
>>> Running: svn --non-interactive --version -q
>>> repository info: Path: http://mydevsvn.net/M9, Base path: 
/server/trunk/data, Supports changesets: False
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry 
-r 47514:47515
>>> Running: svn --non-interactive info function_level_info.xml
>>> Running: svn --non-interactive diff --diff-cmd=diff --notice-ancestry 
-r 47514:47515 --no-diff-deleted
>>> Running: svn --non-interactive info function_level_info.xml
>>> Running: svn --non-interactive info function_level_info.xml
>>> Running: svn --non-interactive info function_level_info.xml
>>> Making HTTP GET request to http://192.168.180.33/api/validation/diffs/
>>> Cached response for HTTP GET 
http://192.168.180.33/api/validation/diffs/ expired and was modified
>>> Making HTTP POST request to http://192.168.180.33/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> Error data: {u'stat': u'fail', u'reason': u'Authentication failed when 
talking to the Subversion repository', u'err': {u'msg': u'The specified 
diff file could not be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "/usr/bin/rbt", line 9, in 
load_entry_point('RBTools==0.7.4', 'console_scripts', 'rbt')()
  File 
"/usr/lib/python2.6/site-packages/RBTools-0.7.4-py2.6.egg/rbtools/commands/main.py",
 
line 133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/usr/lib/python2.6/site-packages/RBTools-0.7.4-py2.6.egg/rbtools/commands/__init__.py",
 
line 612, in run_from_argv
exit_code = self.main(*args) or 0
  File 
"/usr/lib/python2.6/site-packages/RBTools-0.7.4-py2.6.egg/rbtools/commands/post.py",
 
line 754, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The specified diff file could not be parsed. (HTTP 400, API Error 224)



-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-18 Thread Jonathan Anderson
Mounting the git repository using NFS, and accessing it directly using the 
Path field in setup and clearing out the Mirror Path, my issue appears to 
be resolved. Thanks!

On Monday, February 16, 2015 at 10:53:02 AM UTC-8, Jonathan Anderson wrote:
>
> Now that I know what was wrong with my configuration, I was able to find 
> the appropriate documentation. Not sure whether I should have seen this 
> going through the first time and just missed it.
>
> https://www.reviewboard.org/docs/manual/1.5/admin/management/repositories/#local-clone
>  
> <https://www.google.com/url?q=https%3A%2F%2Fwww.reviewboard.org%2Fdocs%2Fmanual%2F1.5%2Fadmin%2Fmanagement%2Frepositories%2F%23local-clone&sa=D&sntz=1&usg=AFQjCNFMWnooWT7Bc412w3E3ZD814AjvCw>
>
> On Monday, February 16, 2015 at 10:31:14 AM UTC-8, Jonathan Anderson wrote:
>>
>> It's occurring to me that right now, I have a bare repository and intend 
>> to keep it that way if I can. If I were to have the reviewboard instance 
>> accessing git directly through the file system, would it need a working 
>> directory in order to function?
>>
>> Is there a way I could set up a git repo on the reviewboard server, 
>> tracking our remote, and simply have it fetch when it needs to verify any 
>> files?
>>
>> On Monday, February 16, 2015 at 9:45:27 AM UTC-8, Jonathan Anderson wrote:
>>>
>>> It sounds like this is a documentation issue then. I don't believe that, 
>>> in the process of setting up our reviewboard, there was an indication that 
>>> the repository needed to be hosted locally. In fact, the repository 
>>> settings in the UI suggested otherwise.
>>>
>>> I'll give this a try and update back here.
>>>
>>> On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond 
>>> wrote:
>>>>
>>>> Unfortunately, that configuration can't work, unless there's also a raw 
>>>> file URL field that's filled out. Git's protocol has no ability to fetch 
>>>> the kind of information we need remotely, including individual files. 
>>>>
>>>> For Git, it's a requirement to either host the repository on the Review 
>>>> Board server (or through something like an NFS mount), or to use a service 
>>>> like GitWeb. GitWeb is the recommended route right now (though we're 
>>>> working on a service to help make all this easier). 
>>>>
>>>> If the other changes were successfully posting, my guess is that they 
>>>> were introducing new files, which doesn't require communication with the 
>>>> repository. Otherwise, there's no way that the file verification could 
>>>> have 
>>>> worked with a remote Git path. 
>>>>
>>>> Christian 
>>>>
>>>> --   
>>>> Christian Hammond - chri...@beanbaginc.com   
>>>> Review Board - https://www.reviewboard.org   
>>>> Beanbag, Inc. - https://www.beanbaginc.com 
>>>>
>>>> -Original Message- 
>>>> From: Liam Reimers  
>>>> Reply: Liam Reimers > 
>>>> Date: February 13, 2015 at 3:40:54 PM 
>>>> To: revie...@googlegroups.com > 
>>>> Cc: liam.r...@gmail.com >, chri...@beanbaginc.com 
>>>> > 
>>>> Subject:  Re: The specified diff file could not be parsed. 
>>>>
>>>> >   
>>>> >   
>>>> > > Ah, I just saw part of your error: "Not a git repository: 'None.'" 
>>>> > > 
>>>> > > How is your repository configured in Review Board? 
>>>> >   
>>>> >   
>>>> > Name - Repository 
>>>> > Hosting - None (custom) 
>>>> > Type - Git 
>>>> > Path - git@server:path/repo.git 
>>>> >   
>>>> > However, note that the client can post a review request using one 
>>>> > invocation (with HEAD~) and not the other, so it would seem that the 
>>>> repo 
>>>> > is configured correctly? 
>>>> >   
>>>>
>>>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-18 Thread Christian Hammond
Hi Liam,

This sounds like you're proxy server is being used for requests to your
internal Review Board, which the proxy server is failing to access properly.

I'm on the road so I can't give you exact details, but there's a command
line option and configuration flag for telling RBTools to skip using your
proxy server. --no-proxy, I want to say.

Christian


On Wednesday, February 18, 2015, Liam Reimers 
wrote:

> After fiddling with this some more, I ended up discarding the repo config
> and creating a new config as a Gitlab repo. This seems to have worked,
> however, when I try to post a review:
>
> 08:03 $ rbt post -g yes --bugs-closed 19788098 -d
> >>> RBTools 0.7.1
> >>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12)
> [GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
> >>> Running on Darwin-14.1.0-x86_64-i386-64bit
> >>> Home = /Users/user
> >>> Current directory = /Users/user/Code/repo
> >>> Checking for a Subversion repository...
> >>> Running: svn info --non-interactive
> >>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
> svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
> >>> Command exited with rc 1: ['git', 'config', '--get',
> u'branch.PR19788098.merge']
> ---
> >>> Running: git config --get branch.PR19788098.remote
> >>> Command exited with rc 1: ['git', 'config', '--get',
> u'branch.PR19788098.remote']
> ---
> >>> Running: git config --get remote.origin.url
> >>> repository info: Path: https://gitlab/group/repo.git, Base path: ,
> Supports changesets: False
> >>> Making HTTP GET request to http://reviewboard/api/
> >>> Running: git rev-parse refs/heads/PR19788098
> >>> Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213
> origin/master
> >>> Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
> >>> Running: git status --porcelain --untracked-files=no
> >>> Running: git -c core.quotepath=false -c diff.noprefix=false diff
> --no-color --full-index --ignore-submodules -M --no-ext-diff
> 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
> >>> Making HTTP GET request to http://reviewboard/api/validation/diffs/
> >>> Cached response for HTTP GET http://reviewboard/api/validation/diffs/
> expired and was modified
> >>> Making HTTP POST request to http://reviewboard/api/validation/diffs/
> >>> Got HTTP error: 502: 
> 
> 502 Proxy Error
> 
> Proxy Error
> The proxy server received an invalid
> response from an upstream server.
> The proxy server could not handle the request  href="/api/validation/diffs/">POST /api/validation/diffs/.
> Reason: Error reading from remote server
> 
> Apache/2.2.15 (Oracle) Server at reviewboard Port 80
> 
>
> Traceback (most recent call last):
>   File "/usr/local/bin/rbt", line 8, in 
> load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
>   File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line
> 133, in main
> command.run_from_argv([RB_MAIN, command_name] + args)
>   File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py",
> line 538, in run_from_argv
> exit_code = self.main(*args) or 0
>   File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line
> 670, in main
> (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>
> HTTP 502
>


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

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-18 Thread Liam Reimers
After fiddling with this some more, I ended up discarding the repo config 
and creating a new config as a Gitlab repo. This seems to have worked, 
however, when I try to post a review:

08:03 $ rbt post -g yes --bugs-closed 19788098 -d
>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.1.0-x86_64-i386-64bit
>>> Home = /Users/user
>>> Current directory = /Users/user/Code/repo
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
>>> Running: git config --get branch.PR19788098.remote
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
>>> Running: git config --get remote.origin.url
>>> repository info: Path: https://gitlab/group/repo.git, Base path: , 
Supports changesets: False
>>> Making HTTP GET request to http://reviewboard/api/
>>> Running: git rev-parse refs/heads/PR19788098
>>> Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
>>> Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
>>> Making HTTP GET request to http://reviewboard/api/validation/diffs/
>>> Cached response for HTTP GET http://reviewboard/api/validation/diffs/ 
expired and was modified
>>> Making HTTP POST request to http://reviewboard/api/validation/diffs/
>>> Got HTTP error: 502: 

502 Proxy Error

Proxy Error
The proxy server received an invalid
response from an upstream server.
The proxy server could not handle the request POST /api/validation/diffs/.
Reason: Error reading from remote server

Apache/2.2.15 (Oracle) Server at reviewboard Port 80


Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in 
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

HTTP 502

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-18 Thread Liam Reimers
After fiddling with this some more, I ended up discarding the repo config 
and creating a new config as a Gitlab repo. This seems to have worked, 
however, when I try to post a review:

08:03 $ rbt post -g yes --bugs-closed 19788098 -d
>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.1.0-x86_64-i386-64bit
>>> Home = /Users/user
>>> Current directory = /Users/user/Code/repo
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
>>> Running: git config --get branch.PR19788098.remote
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
>>> Running: git config --get remote.origin.url
>>> repository info: Path: https://gitlab/group/repo.git, Base path: , 
Supports changesets: False
>>> Making HTTP GET request to 
http://reviewboard-dtpe.uat-app.apple.com/api/
>>> Running: git rev-parse refs/heads/PR19788098
>>> Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
>>> Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
>>> Making HTTP GET request to http://reviewboard/api/validation/diffs/
>>> Cached response for HTTP GET http://reviewboard/api/validation/diffs/ 
expired and was modified
>>> Making HTTP POST request to http://reviewboard/api/validation/diffs/
>>> Got HTTP error: 502: 

502 Proxy Error

Proxy Error
The proxy server received an invalid
response from an upstream server.
The proxy server could not handle the request POST /api/validation/diffs/.
Reason: Error reading from remote server

Apache/2.2.15 (Oracle) Server at reviewboard Port 80


Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in 
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

HTTP 502

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-16 Thread Jonathan Anderson
Now that I know what was wrong with my configuration, I was able to find 
the appropriate documentation. Not sure whether I should have seen this 
going through the first time and just missed it.
https://www.reviewboard.org/docs/manual/1.5/admin/management/repositories/#local-clone

On Monday, February 16, 2015 at 10:31:14 AM UTC-8, Jonathan Anderson wrote:
>
> It's occurring to me that right now, I have a bare repository and intend 
> to keep it that way if I can. If I were to have the reviewboard instance 
> accessing git directly through the file system, would it need a working 
> directory in order to function?
>
> Is there a way I could set up a git repo on the reviewboard server, 
> tracking our remote, and simply have it fetch when it needs to verify any 
> files?
>
> On Monday, February 16, 2015 at 9:45:27 AM UTC-8, Jonathan Anderson wrote:
>>
>> It sounds like this is a documentation issue then. I don't believe that, 
>> in the process of setting up our reviewboard, there was an indication that 
>> the repository needed to be hosted locally. In fact, the repository 
>> settings in the UI suggested otherwise.
>>
>> I'll give this a try and update back here.
>>
>> On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond 
>> wrote:
>>>
>>> Unfortunately, that configuration can't work, unless there's also a raw 
>>> file URL field that's filled out. Git's protocol has no ability to fetch 
>>> the kind of information we need remotely, including individual files. 
>>>
>>> For Git, it's a requirement to either host the repository on the Review 
>>> Board server (or through something like an NFS mount), or to use a service 
>>> like GitWeb. GitWeb is the recommended route right now (though we're 
>>> working on a service to help make all this easier). 
>>>
>>> If the other changes were successfully posting, my guess is that they 
>>> were introducing new files, which doesn't require communication with the 
>>> repository. Otherwise, there's no way that the file verification could have 
>>> worked with a remote Git path. 
>>>
>>> Christian 
>>>
>>> --   
>>> Christian Hammond - chri...@beanbaginc.com   
>>> Review Board - https://www.reviewboard.org   
>>> Beanbag, Inc. - https://www.beanbaginc.com 
>>>
>>> -Original Message- 
>>> From: Liam Reimers  
>>> Reply: Liam Reimers > 
>>> Date: February 13, 2015 at 3:40:54 PM 
>>> To: revie...@googlegroups.com > 
>>> Cc: liam.r...@gmail.com >, chri...@beanbaginc.com <
>>> chri...@beanbaginc.com>> 
>>> Subject:  Re: The specified diff file could not be parsed. 
>>>
>>> >   
>>> >   
>>> > > Ah, I just saw part of your error: "Not a git repository: 'None.'" 
>>> > > 
>>> > > How is your repository configured in Review Board? 
>>> >   
>>> >   
>>> > Name - Repository 
>>> > Hosting - None (custom) 
>>> > Type - Git 
>>> > Path - git@server:path/repo.git 
>>> >   
>>> > However, note that the client can post a review request using one 
>>> > invocation (with HEAD~) and not the other, so it would seem that the 
>>> repo 
>>> > is configured correctly? 
>>> >   
>>>
>>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-16 Thread Jonathan Anderson
It's occurring to me that right now, I have a bare repository and intend to 
keep it that way if I can. If I were to have the reviewboard instance 
accessing git directly through the file system, would it need a working 
directory in order to function?

Is there a way I could set up a git repo on the reviewboard server, 
tracking our remote, and simply have it fetch when it needs to verify any 
files?

On Monday, February 16, 2015 at 9:45:27 AM UTC-8, Jonathan Anderson wrote:
>
> It sounds like this is a documentation issue then. I don't believe that, 
> in the process of setting up our reviewboard, there was an indication that 
> the repository needed to be hosted locally. In fact, the repository 
> settings in the UI suggested otherwise.
>
> I'll give this a try and update back here.
>
> On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond 
> wrote:
>>
>> Unfortunately, that configuration can't work, unless there's also a raw 
>> file URL field that's filled out. Git's protocol has no ability to fetch 
>> the kind of information we need remotely, including individual files. 
>>
>> For Git, it's a requirement to either host the repository on the Review 
>> Board server (or through something like an NFS mount), or to use a service 
>> like GitWeb. GitWeb is the recommended route right now (though we're 
>> working on a service to help make all this easier). 
>>
>> If the other changes were successfully posting, my guess is that they 
>> were introducing new files, which doesn't require communication with the 
>> repository. Otherwise, there's no way that the file verification could have 
>> worked with a remote Git path. 
>>
>> Christian 
>>
>> --   
>> Christian Hammond - chri...@beanbaginc.com   
>> Review Board - https://www.reviewboard.org   
>> Beanbag, Inc. - https://www.beanbaginc.com 
>>
>> -Original Message- 
>> From: Liam Reimers  
>> Reply: Liam Reimers > 
>> Date: February 13, 2015 at 3:40:54 PM 
>> To: revie...@googlegroups.com > 
>> Cc: liam.r...@gmail.com >, chri...@beanbaginc.com <
>> chri...@beanbaginc.com>> 
>> Subject:  Re: The specified diff file could not be parsed. 
>>
>> >   
>> >   
>> > > Ah, I just saw part of your error: "Not a git repository: 'None.'" 
>> > > 
>> > > How is your repository configured in Review Board? 
>> >   
>> >   
>> > Name - Repository 
>> > Hosting - None (custom) 
>> > Type - Git 
>> > Path - git@server:path/repo.git 
>> >   
>> > However, note that the client can post a review request using one 
>> > invocation (with HEAD~) and not the other, so it would seem that the 
>> repo 
>> > is configured correctly? 
>> >   
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-16 Thread Jonathan Anderson
It sounds like this is a documentation issue then. I don't believe that, in 
the process of setting up our reviewboard, there was an indication that the 
repository needed to be hosted locally. In fact, the repository settings in 
the UI suggested otherwise.

I'll give this a try and update back here.

On Saturday, February 14, 2015 at 12:26:28 AM UTC-8, Christian Hammond 
wrote:
>
> Unfortunately, that configuration can't work, unless there's also a raw 
> file URL field that's filled out. Git's protocol has no ability to fetch 
> the kind of information we need remotely, including individual files. 
>
> For Git, it's a requirement to either host the repository on the Review 
> Board server (or through something like an NFS mount), or to use a service 
> like GitWeb. GitWeb is the recommended route right now (though we're 
> working on a service to help make all this easier). 
>
> If the other changes were successfully posting, my guess is that they were 
> introducing new files, which doesn't require communication with the 
> repository. Otherwise, there's no way that the file verification could have 
> worked with a remote Git path. 
>
> Christian 
>
> --   
> Christian Hammond - chri...@beanbaginc.com
> Review Board - https://www.reviewboard.org   
> Beanbag, Inc. - https://www.beanbaginc.com 
>
> -Original Message- 
> From: Liam Reimers > 
> Reply: Liam Reimers >> 
> Date: February 13, 2015 at 3:40:54 PM 
> To: revie...@googlegroups.com   >> 
> Cc: liam.r...@gmail.com  >>, 
> chri...@beanbaginc.com  >> 
>
> Subject:  Re: The specified diff file could not be parsed. 
>
> >   
> >   
> > > Ah, I just saw part of your error: "Not a git repository: 'None.'" 
> > > 
> > > How is your repository configured in Review Board? 
> >   
> >   
> > Name - Repository 
> > Hosting - None (custom) 
> > Type - Git 
> > Path - git@server:path/repo.git 
> >   
> > However, note that the client can post a review request using one 
> > invocation (with HEAD~) and not the other, so it would seem that the 
> repo 
> > is configured correctly? 
> >   
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-14 Thread Christian Hammond
Unfortunately, that configuration can't work, unless there's also a raw file 
URL field that's filled out. Git's protocol has no ability to fetch the kind of 
information we need remotely, including individual files.

For Git, it's a requirement to either host the repository on the Review Board 
server (or through something like an NFS mount), or to use a service like 
GitWeb. GitWeb is the recommended route right now (though we're working on a 
service to help make all this easier).

If the other changes were successfully posting, my guess is that they were 
introducing new files, which doesn't require communication with the repository. 
Otherwise, there's no way that the file verification could have worked with a 
remote Git path.

Christian

--  
Christian Hammond - christ...@beanbaginc.com  
Review Board - https://www.reviewboard.org  
Beanbag, Inc. - https://www.beanbaginc.com

-Original Message-
From: Liam Reimers 
Reply: Liam Reimers >
Date: February 13, 2015 at 3:40:54 PM
To: reviewboard@googlegroups.com >
Cc: liam.reim...@gmail.com >, christ...@beanbaginc.com 
>
Subject:  Re: The specified diff file could not be parsed.

>  
>  
> > Ah, I just saw part of your error: "Not a git repository: 'None.'"
> >
> > How is your repository configured in Review Board?
>  
>  
> Name - Repository
> Hosting - None (custom)
> Type - Git
> Path - git@server:path/repo.git
>  
> However, note that the client can post a review request using one
> invocation (with HEAD~) and not the other, so it would seem that the repo
> is configured correctly?
>  

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers


> Ah, I just saw part of your error: "Not a git repository: 'None.'" 
>
> How is your repository configured in Review Board? 


Name - Repository
Hosting - None (custom) 
Type - Git
Path - git@server:path/repo.git

However, note that the client can post a review request using one 
invocation (with HEAD~) and not the other, so it would seem that the repo 
is configured correctly?

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Christian Hammond
Ah, I just saw part of your error: "Not a git repository: 'None.'"

How is your repository configured in Review Board?

Christian

--  
Christian Hammond - christ...@beanbaginc.com  
Review Board - https://www.reviewboard.org  
Beanbag, Inc. - https://www.beanbaginc.com

-Original Message-
From: Liam Reimers 
Reply: Liam Reimers >
Date: February 13, 2015 at 1:22:57 PM
To: reviewboard@googlegroups.com >
Cc: liam.reim...@gmail.com >, christ...@beanbaginc.com 
>
Subject:  Re: The specified diff file could not be parsed.

>  
>  
> > Does the problem go away if the local branch is rebased back onto master
> > again?
> >
>  
> No, it does not. I checkout out master, merged the branch (single change),
> and ran:
>  
> rbt post -g yes --bugs-closed 19788098 -d
>  
> It had the same output, ending with:
>  
> >>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git
> repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not
> be parsed.', u'code': 224}}
> Traceback (most recent call last):
> File "/usr/local/bin/rbt", line 8, in  
> load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
> File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line
> 133, in main
> command.run_from_argv([RB_MAIN, command_name] + args)
> File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py",
> line 538, in run_from_argv
> exit_code = self.main(*args) or 0
> File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line
> 670, in main
> (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>  
> The specified diff file could not be parsed. (HTTP 400, API Error 224)
>  

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers


> Does the problem go away if the local branch is rebased back onto master 
> again? 
>

No, it does not. I checkout out master, merged the branch (single change), 
and ran:

rbt post -g yes --bugs-closed 19788098 -d

It had the same output, ending with:

>>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git 
repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not 
be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in 
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The specified diff file could not be parsed. (HTTP 400, API Error 224) 

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Christian Hammond
Does the problem go away if the local branch is rebased back onto master again?

There is a known issue with the tool when the branch isn't up-to-date with 
regard to its tracking branch. We're working on a set of improvements to this 
logic that will hopefully resolve this.
Christian

--  
Christian Hammond - christ...@beanbaginc.com  
Review Board - https://www.reviewboard.org  
Beanbag, Inc. - https://www.beanbaginc.com

-Original Message-
From: Liam Reimers 
Reply: reviewboard@googlegroups.com >
Date: February 13, 2015 at 7:05:59 AM
To: reviewboard@googlegroups.com >
Subject:  Re: The specified diff file could not be parsed.

> I should also note that HEAD is a modification of an existing file, and
> HEAD~1 was adding a new file. Sort of reminds me
> of: https://groups.google.com/forum/#!topic/reviewboard/U-pVdasCWxw
>  
> However, I don't get the error in that thread.
>  
> --
> Supercharge your Review Board with Power Pack: 
> https://www.reviewboard.org/powerpack/  
> Want us to host Review Board for you? Check out RBCommons: 
> https://rbcommons.com/
> Happy user? Let us know! https://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.
>  

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers
I should also note that HEAD is a modification of an existing file, and 
HEAD~1 was adding a new file. Sort of reminds me 
of: https://groups.google.com/forum/#!topic/reviewboard/U-pVdasCWxw

However, I don't get the error in that thread.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers
Is there a way to see what diff is being posted by the tool?

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-13 Thread Liam Reimers
using git, I am on a local branch that has diverged from master (and 
origin/master) by one commit.

I upgraded to 2.0.13, and I get the same error when trying to post a 
review. I honestly feel this is a problem in the tool:

06:40 $ rbt post -g yes --bugs-closed 19788098  -d
>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.1.0-x86_64-i386-64bit
>>> Home = /Users/user
>>> Current directory = /Users/user/Code/repo
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
>>> Running: git config --get branch.PR19788098.remote
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
>>> Running: git config --get remote.origin.url
>>> repository info: Path: git@server:path/repo, Base path: , Supports 
changesets: False
>>> Making HTTP GET request to http://reviewboard/api/
>>> Cache directory '/Users/user/Library/Caches/rbtools' does not exist; 
creating.
>>> API cache '/Users/user/Library/Caches/rbtools/apicache.db' does not 
exist; creating.
>>> Running: git rev-parse refs/heads/PR19788098
>>> Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
>>> Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
>>> Making HTTP GET request to http://reviewboard/api/validation/diffs/
>>> Added cache entry for HTTP GET request to 
http://reviewboard/api/validation/diffs/
>>> Making HTTP POST request to http://reviewboard/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git 
repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not 
be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in 
load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 
133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 
670, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The specified diff file could not be parsed. (HTTP 400, API Error 224)


However:

06:53 $ rbt post -g yes --bugs-closed 19788098 -d HEAD~
>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.1.0-x86_64-i386-64bit
>>> Home = /Users/user
>>> Current directory = /Users/user/Code/repo
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' 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.PR19788098.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
>>> Running: git config --get branch.PR19788098.remote
>>> Command exited with rc 1: ['git', 'c

Re: The specified diff file could not be parsed.

2015-02-12 Thread David Trowbridge
Would it be possible for you to test with the just-released 2.0.13? We've
improved several aspects of parsing git diffs.

-David

On Thu Feb 12 2015 at 4:11:53 PM Liam Reimers 
wrote:

> I'm having this exact issue as well. Is there any additional information I
> can post to help troubleshoot?
>
> >>> RBTools 0.7.1
> >>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12)
>
> --
> Supercharge your Review Board with Power Pack:
> https://www.reviewboard.org/powerpack/
> Want us to host Review Board for you? Check out RBCommons:
> https://rbcommons.com/
> Happy user? Let us know! https://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.
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: The specified diff file could not be parsed.

2015-02-12 Thread Liam Reimers
I'm having this exact issue as well. Is there any additional information I 
can post to help troubleshoot?

>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


The specified diff file could not be parsed.

2015-02-09 Thread Jonathan Anderson
I am getting the following error whenever I attempt to "rbt post" a change 
that contains updates to an existing file.
Posting a change containing a single new file works as expected.

I have attached a fiddler archive with the reviewboard request.

I am using an ssh git repository. I am accessing the reviewboard instance 
from Windows 8.1 using RBTools for Windows.



$ rbt post --debug
>>> RBTools 0.7
>>> Python 2.7.6 (default, Nov 10 2013, 19:24:18) [MSC v.1500 32 bit 
(Intel)]
>>> Running on Windows-8-6.2.9200
>>> Home = C:\Users\janderson\AppData\Roaming
>>> Current directory = c:\work
>>> Checking for a Subversion repository...
>>> Unable to execute "svn help": skipping SVN
>>> 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.test.merge
>>> Running: git config --get branch.test.remote
>>> Running: git config --get remote.origin.url
>>> repository info: Path: git@q-git:/opt/git/quosal.git, Base path: , 
Supports changesets: False
>>> Making HTTP GET request to http://codereview/api/
>>> Cached response for HTTP GET http://codereview/api/ expired and was 
modified
>>> Running: git rev-parse refs/heads/test
>>> Running: git merge-base 7c9e3a6183f52cd33e4a203c6d53b46b6748c7af 
origin/master
>>> Running: git rev-parse dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git diff --no-color --full-index --ignore-submodules -M 
--no-ext-diff 
dd3d91bf5665f5d3bf022b6ec170fdd96b8a6ac4..7c9e3a6183f52cd33e4a203c6d53b46b6748c7af
>>> Making HTTP GET request to http://codereview/api/validation/
>>> Cached response for HTTP GET http://codereview/api/validation/ expired 
and was not modified
>>> Making HTTP GET request to http://codereview/api/validation/diffs/
>>> Cached response for HTTP GET http://codereview/api/validation/diffs/ 
expired and was modified
>>> Making HTTP POST request to http://codereview/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git 
repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not 
be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "c:/Program Files (x86)/RBTools/Python27/Scripts/rbt-script.py", 
line 8, in 
load_entry_point('RBTools==0.7', 'console_scripts', 'rbt')()
  File "c:\Program Files 
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\main.py",
 
line 133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "c:\Program Files 
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\__init__.py",
 
line 538, in run_from_argv
exit_code = self.main(*args) or 0
  File "c:\Program Files 
(x86)\RBTools\Python27\lib\site-packages\rbtools-0.7-py2.7.egg\rbtools\commands\post.py",
 
line 662, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The specified diff file could not be parsed. (HTTP 400, API Error 224)

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Reviewboard Diff File Could Not Be Parsed.saz
Description: Binary data