On Friday, December 16, 2016 at 4:20:36 PM UTC-6, David Trowbridge wrote:
>
> It looks like you might be using --diff-filename with a diff you made
> yourself?
>
> If that's the case, you need to add --full-index to your git diff command.
>
> -David
>
>
> On Fri, Dec 16, 2016 at 2:13 PM Mark Wiederholt <[email protected]
> <javascript:>> wrote:
>
>>
>> I am having problems posting a reviewboard topic. It comes back with the
>> following error.
>>
>> >>> RBTools 0.7.5
>> >>> Python 2.6.6 (r266:84292, May 22 2015, 08:34:51)
>> [GCC 4.4.7 20120313 (Red Hat 4.4.7-15)]
>> >>> Running on
>> Linux-2.6.32-642.1.1.el6.x86_64-x86_64-with-redhat-6.8-Santiago
>> >>> Home = /users/mwiederh
>> >>> Current directory = /users/mwiederh/repos/ts-mfed
>> >>> Checking for a Subversion repository...
>> >>> Running: svn --non-interactive info
>> >>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
>> svn: '.' 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.next.merge
>> >>> Running: git config --get branch.next.remote
>> >>> Running: git config --get remote.origin.url
>> >>> repository info: Path: gitolite@deveod1:ts-mfed.git, Base path: ,
>> Supports changesets: False
>> >>> Making HTTP GET request to https://infra1.ts21.gov/rb/api/
>> >>> Making HTTP GET request to
>> https://infra1.ts21.gov/rb/api/validation/diffs/
>> >>> Cached response for HTTP GET
>> https://infra1.ts21.gov/rb/api/validation/diffs/ expired and was modified
>> >>> Making HTTP POST request to
>> https://infra1.ts21.gov/rb/api/validation/diffs/
>> >>> Got API Error 207 (HTTP code 400): The file was not found in the
>> repository.
>> >>> Error data: {u'stat': u'fail', u'file':
>> u'utils/src/ModeCommandProcess.cpp', u'err': {u'msg': u'The file was not
>> found in the repository.', u'code': 207}, u'revision': u'6f94900'}
>> Traceback (most recent call last):
>> File "/usr/bin/rbt", line 9, in <module>
>> load_entry_point('RBTools==0.7.5', 'console_scripts', 'rbt')()
>> File
>> "/usr/lib/python2.6/site-packages/RBTools-0.7.5-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.5-py2.6.egg/rbtools/commands/__init__.py",
>>
>> line 622, in run_from_argv
>> exit_code = self.main(*args) or 0
>> File
>> "/usr/lib/python2.6/site-packages/RBTools-0.7.5-py2.6.egg/rbtools/commands/post.py",
>>
>> line 754, in main
>> (msg_prefix, e))
>> rbtools.commands.CommandError: Error validating diff
>>
>> utils/src/ModeCommandProcess.cpp: The file was not found in the
>> repository. (HTTP 400, API Error 207)
>>
>>
>> On some files it works others it doesnt. I checked the linux file and
>> directory permissions all good.
>>
>>
>> Any suggestions?
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>>
>> --
>>
>>
>> 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 [email protected] <javascript:>.
>>
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
Thanks for the fast reply!!
The --full-index option gives me another error every time for any file.
git diff --full-index
ad7e5c226f41c72087e5798573b28f03b4267df4..0a1c58734926eb5f68df6781c6af54ca61a7f8a4
> rr
[USS] [5:54pm] b5speinfra1 [515] [/users/mwiederh/repos/ts-mfed] (next)$
more rr
diff --git
a/ad7e5c226f41c72087e5798573b28f03b4267df4..0a1c58734926eb5f68df6781c6af54ca61a7f8a4
b/0a1c58734926eb5f68df6781c6af54ca61a7f8a4
index
ad7e5c226f41c72087e5798573b28f03b4267df4..0a1c58734926eb5f68df6781c6af54ca61a7f8a4
100644
---
a/ad7e5c226f41c72087e5798573b28f03b4267df4..0a1c58734926eb5f68df6781c6af54ca61a7f8a4
+++
b/0a1c58734926eb5f68df6781c6af54ca61a7f8a4
@@ -3,6 +3,7
@@
*
* Created on: July 17,
2013
* Author:
dstrauss
+ *
changeit
*/
#include
"../include/ModeCommandProcess.hh"
[USS] [5:54pm] b5speinfra1 [516] [/users/mwiederh/repos/ts-mfed] (next)$
rbt post -dp --guess-fields=yes --diff-filename=rr --branch=next
--repository-type git
>>> RBTools
0.7.5
>>> Python 2.6.6 (r266:84292, May 22 2015,
08:34:51)
[GCC 4.4.7 20120313 (Red Hat
4.4.7-15)]
>>> Running on
Linux-2.6.32-642.1.1.el6.x86_64-x86_64-with-redhat-6.8-Santiago
>>> Home = /users/mwiederh
>>> Current directory = /users/mwiederh/repos/ts-mfed
>>> 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.next.merge
>>> Running: git config --get branch.next.remote
>>> Running: git config --get remote.next.url
>>> Command exited with rc 1: ['git', 'config', '--get', u'remote.next.url']
---
>>> Running: git config --get remote.next.url
>>> Command exited with rc 1: ['git', 'config', '--get', u'remote.next.url']
---
>>> repository info: Path: /users/mwiederh/repos/ts-mfed/.git, Base path: ,
Supports changesets: False
>>> Making HTTP GET request to https://infra1.ts21.gov/rb/api/
>>> Making HTTP GET request to
https://nfra1.ts21.gov/rb/api/validation/diffs/
>>> Cached response for HTTP GET
https://infra1.ts21.gov/rb/api/validation/diffs/ expired and was modified
>>> Making HTTP POST request to
https://infra1.ts21.gov/rb/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): error: unable to find
ad7e5c226f41c72087e5798573b28f03b4267df4
fatal: git cat-file ad7e5c226f41c72087e5798573b28f03b4267df4: bad file
>>> Error data: {u'stat': u'fail', u'err': {u'msg': u'error: unable to find
ad7e5c226f41c72087e5798573b28f03b4267df4\nfatal: git cat-file
ad7e5c226f41c72087e5798573b28f03b4267df4: bad file\n', u'code': 224}}
Traceback (most recent call last):
File "/usr/bin/rbt", line 9, in <module>
load_entry_point('RBTools==0.7.5', 'console_scripts', 'rbt')()
File
"/usr/lib/python2.6/site-packages/RBTools-0.7.5-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.5-py2.6.egg/rbtools/commands/__init__.py",
line 622, in run_from_argv
exit_code = self.main(*args) or 0
File
"/usr/lib/python2.6/site-packages/RBTools-0.7.5-py2.6.egg/rbtools/commands/post.py",
line 754, in main
(msg_prefix, e))
rbtools.commands.CommandError: Error validating diff
error: unable to find ad7e5c226f41c72087e5798573b28f03b4267df4
fatal: git cat-file ad7e5c226f41c72087e5798573b28f03b4267df4: bad file
(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 [email protected].
For more options, visit https://groups.google.com/d/optout.