2326: post-review error " The file was not found in the repository "
- Fixed
- Review Board
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
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
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.
-
+