review board diff not uploading

淺唱寂寞╮ 提交于 2019-11-30 16:36:26

The problem you are facing may be that the relative path in the diff file is not correlated with the path of the repository as it is configured in Reviewboard.

Reviewboard, in order to find in the repository the files mentioned in the diff, will concatenate the URLs like this:

  • URL of the repo as configured in Reviewboard
    +
  • optionally - the Base directory as it appears in the Reviewboard Upload diff dialog - which can be absolute/complete but also relative(!)
    +
  • the relative path of the modified file as it appears in the diff file.

All these must be correlated.

Therefore, in your case, if your repository configured URL is:
https://XXX/svn/infinity/trunk/0.1
and your relative path in the diff file is:
/trunk/0.1/scripts/configure-apache.sh
... that will not work because the resulting absolute path of the file in the repo will be incorrect:
https://XXX/svn/infinity/trunk/0.1/trunk/0.1/scripts/configure-apache.sh

Possible solutions would be:
Your URL for SVN should be configured in Reviewboard like this:
https://XXX/svn/infinity
OR
The diff should be created at a lower level in the folders hierarchy - in this case it should be done at ../0.1/ level so that the path in the diff file results in /scripts/configure-apache.sh

HTH!

a workaround is to do a manual svn diff and save to a file and then compare the working copy with the trunk in the web ui

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!