2326: post-review error " The file was not found in the repository "

wangxiao*********@gmai***** (Google Code) (Is this you? Claim this profile.)
Feb. 1, 2014
What version are you running?
RBTools 0.3.3/0.3.4
Review Board 1.5.5

What's the URL of the page containing the problem?


What steps will reproduce the problem?
1.post-review --revision-range=41129:42185 
2.
3.

What is the expected output? What do you see instead?
I got following error, but in face this file "hadoop.sh"  exists
>>> Got API Error 207 (HTTP code 400): The file was not found in the repository
>>> Error data: {u'stat': u'fail', u'file': u'/k2/trunk/fe/bin/hadoop.sh', u'err': {u'msg': u'The file was not found in the repository', u'code': 207}, u'revision': u'41129'}


What operating system are you using? What browser?
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
Mac

Please provide any additional information below.
some file not all files will display as not found

In Mac, using pre-commit by post-review, deleted files will display as not found, with RBTools 0.3.3/0.3.4  python2.7 Review Board 1.5.5
david
#1 david
  • +Component-SCMTools
    +Component-RBTools
david
#2 david
This has changed a lot since 0.3.x. In particular, I know that revision ranges with deleted files for SVN work correctly in the master branch (which will ship as 0.6)
  • +Fixed
#3 gor***@gmai***** (Google Code) (Is this you? Claim this profile.)
I had the same issue with version 0.5.3, tried updating to 0.6.2, but I still see the issue:

posting "normal" changes works fine, but if I post a change that contains a delete, I get:

>>> Making HTTP POST request to http://reviewboard/api/review-requests/11/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'/project/trunk/path/to/deleted/file', u'err': {u'msg': u'The file was not found in the repository', u'code': 207}, u'revision': u'54806'}
Traceback (most recent call last):
  File "/usr/lib/python-exec/python2.7/rbt", line 9, in <module>
    load_entry_point('RBTools==0.6.2', 'console_scripts', 'rbt')()
  File "/usr/lib64/python2.7/site-packages/rbtools/commands/main.py", line 134, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/usr/lib64/python2.7/site-packages/rbtools/commands/__init__.py", line 416, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/usr/lib64/python2.7/site-packages/rbtools/commands/post.py", line 784, in main
    submit_as=self.options.submit_as)
  File "/usr/lib64/python2.7/site-packages/rbtools/commands/post.py", line 551, in post_request
    raise CommandError(u'\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff


The file was not found in the repository (HTTP 400, API Error 207)

Your review request still exists, but the diff is not attached.


Detailed log is attached.
  • +
    $ rbt post -d r54807
    >>> RBTools 0.6.2
    >>> Python 2.7.6 (default, Jun 16 2014, 15:14:09) 
    [GCC 4.7.3]
    >>> Running on Linux-3.12.21-gentoo-r1-x86_64-Intel-R-_Core-TM-_i5-2520M_CPU_@_2.50GHz-with-gentoo-2.2
    >>> Home = /home/user
    >>> Current directory = /home/user/sandbox.svn
    >>> Checking for a Subversion repository...
    >>> Running: svn info --non-interactive
    >>> Running: diff --version
    >>> repository info: Path: svn://svnserver, Base path: /project/trunk, Supports changesets: False
    >>> Making HTTP GET request to http://reviewboard/api/
    >>> Making HTTP GET request to http://reviewboard/api/info/
    >>> Running: svn log -r r54807 -l 1 --xml
    >>> Running: svn info --non-interactive
    >>> Running: diff --version
    >>> repository info: Path: svn://svnserver, Base path: /project/trunk, Supports changesets: False
    >>> Running: svn status --ignore-externals
    >>> Running: svn diff --diff-cmd=diff --notice-ancestry -r 54806:54807
    >>> Running: svn info some/file
    >>> Running: svn info some
    >>> Running: svn inf