Due to the way Bitbucket's API works, you'll need RBTools to specify a
parent commit ID. This is done by default when RBTools is the one creating
the diff, but not when you're using --diff-filename (and we haven't had the
need so far to specify it manually because people often aren't creating
their own diff files).

If you share how you created 1.diff, I can suggest an RBTools command that
will do it all in one step.

-David

On Thu, Feb 1, 2018 at 7:48 AM Shanta Lakshmi Narasimha Das <
slnd....@gmail.com> wrote:

> Hi,
>  I spent half of my day in this searching Internet, but couldn't able to
> solve. Any help is apprciated
>
> I have added Repository in ReviewBoard with the following settings:-
>
> Hosting Service: BitBucket
> Repositiry type : git
> Repository Plan: Team
> And other Details.
>
> Review Board is able to fetch all the commits from the BitBucket, as I can
> see all the commits in the New Review Request Page. I am using ReviewBoard
> version 3.0.2.
> But when I try to upload diff, I get the below error.
>
> Here is debug output:-
> >>> RBTools 0.7.11
> >>> Python 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:42:59) [MSC
> v.1500 32 b
> it (Intel)]
> >>> Running on Windows-8.1-6.3.9600
> >>> Home = C:\Users\Sevak DAS\AppData\Roaming
> >>> Current directory = C:\Users\Sevak
> DAS\Documents\slnd\projects\laravel\treas
> ury\online
> >>> Command line: rbt post -d --diff-filename 1.diff
> >>> Running: tf vc help
> >>> 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.master.merge
> >>> Running: git config --get branch.master.remote
> >>> Running: git config --get remote.treasury_online.url
> >>> repository info: Path: g...@bitbucket.org:mayapurtech/treasury_online.git,
> Ba
> se path: , Supports changesets: False
> >>> Making HTTP GET request to http://rb.mayapurtreasury.com/api/
> >>> Making HTTP GET request to
> http://rb.mayapurtreasury.com/api/validation/diff
> s/
> >>> Cached response for HTTP GET
> http://rb.mayapurtreasury.com/api/validation/di
> ffs/ expired and was modified
> >>> Making HTTP POST request to
> http://rb.mayapurtreasury.com/api/validation/dif
> fs/
> >>> Got API Error 207 (HTTP code 400): The file was not found in the
> repository.
>
> >>> Error data: {u'stat': u'fail', u'file':
> u'resources/views/register.blade.php
> ', u'err': {u'msg': u'The file was not found in the repository.', u'code':
> 207},
>  u'revision': u'2b44f71644798517a968e834d1fef8cdf8a7c778'}
> Traceback (most recent call last):
>   File "C:\Program Files
> (x86)\RBTools\bin\..\Python27\Scripts\rbt-script.py", l
> ine 11, in <module>
>     load_entry_point('RBTools==0.7.11', 'console_scripts', 'rbt')()
>   File "C:\Program Files
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.11
> -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.11
> -py2.7.egg\rbtools\commands\__init__.py", line 665, in run_from_argv
>     exit_code = self.main(*args) or 0
>   File "C:\Program Files
> (x86)\RBTools\Python27\lib\site-packages\rbtools-0.7.11
> -py2.7.egg\rbtools\commands\post.py", line 821, in main
>     (msg_prefix, e))
> rbtools.commands.CommandError: Error validating diff
>
> resources/views/register.blade.php: The file was not found in the
> repository. (H
> TTP 400, API Error 207)
>
> Any help is greatly appreciated.
>
> Thanks,
> Slnd
>
> --
> 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
> "Review Board Community" 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 
"Review Board Community" 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.

Reply via email to