I download the source of rbtools and find something made the base path blank.
At line 69 of https://github.com/reviewboard/rbtools/blob/master/rbtools/clients/git.py, the value of "self.options.repository_url" in my case will be the value found by "git svn info". the condition of "not self.options.repository_url" will make my base path blank and failed to upload the diff file. I don't know if I removed the prefixed "not" would cause any harm, but it works for me now. steps of compilation and installation can be found here : http://www.reviewboard.org/docs/codebase/dev/getting-started/#rbtools TingHan On Monday, December 3, 2012 2:37:36 PM UTC+8, Ting Han Shen wrote: > > Hi, > > I have a problem looks like about base path when using post-review and I > cannot figure it out how to make > post-review using the right base path. I had tried to change the path of > REPOSITORY to "http://svn.repos" both in > the configuration of ReviewBoard and .reviewboardrc, and change the name > of directory to the name of branch, "397". > But, this error keeps showing up. I revert these changes after failed. > What can I do for the next? > > currently the content of .reviewboardrc is, > > REPOSITORY='http://svn.repos/branches/397' > REVIEWBOARD_URL='http://172.23.20.241:8010' > > following is the cmd I used and the result I got, > > $ post-review --tracking-branch=build --parent=HEAD^ -d > >>> RBTools 0.4.2 > >>> Python 2.7.3 (default, Nov 30 2012, 17:31:35) > [GCC 4.5.3] > >>> Running on CYGWIN_NT-6.1-1.7.17-0.262-5-3-i686-32bit > >>> Home = C:\Users\mt02385\AppData\Roaming > >>> Current Directory = /cygdrive/d/397/src > >>> Checking the repository type. Errors shown below are mostly harmless. > DEBUG:root:Checking for a CVS repository... > DEBUG:root:Checking for a ClearCase repository... > DEBUG:root:Checking for a Git repository... > DEBUG:root:Running: git rev-parse --git-dir > DEBUG:root:Running: git config core.bare > DEBUG:root:Running: git rev-parse --show-toplevel > DEBUG:root:Running: git symbolic-ref -q HEAD > DEBUG:root:Running: git config --get branch.build.merge > DEBUG:root:Running: git config --get branch.build.remote > DEBUG:root:Running: git config --get remote.build.url > DEBUG:root:Command exited with rc 1: ['git', 'config', '--get', > 'remote.build.url'] > --- > DEBUG:root:repository info: Path: http://svn.repos/branches/397, Base > path: , Supports changesets: False > >>> Finished checking the repository type. > >>> HTTP GETting api/ > >>> HTTP GETting http://172.23.20.241:8010/api/info/ > >>> Using the new web API > DEBUG:root:Running: git merge-base build refs/heads/build > DEBUG:root:Running: git diff --no-color --full-index --no-ext-diff > --ignore-submodules HEAD^ > DEBUG:root:Running: git diff --no-color --full-index --no-ext-diff > --ignore-submodules 20d5486b27c7fb61b8118112b15b7e763084dcd2..HEAD^ > >>> Attempting to create review request on http://svn.repos/branches/397for > >>> None > >>> HTTP POSTing to http://172.23.20.241:8010/api/review-requests/: > {'repository': 'http://svn.repos/branches/397'} > >>> Review request created > >>> Uploading diff, size: 4978 > >>> Uploading parent diff, size: 4978 > >>> HTTP POSTing to > http://172.23.20.241:8010/api/review-requests/24/diffs/: {} > >>> Got API Error 105 (HTTP code 400): One or more fields had errors > >>> Error data: {u'fields': {u'basedir': [u'This field is required.']}, > u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', > u'code': 105}} > > Error uploading diff > > The generated diff file was empty. This usually means no files were > modified in this change. > > Try running with --output-diff and --debug for more information. > > Your review request still exists, but the diff is not attached. > > > > > > Thanks for the help. > > TingHan > > -- Want to help the Review Board project? Donate today at http://www.reviewboard.org/donate/ Happy user? Let us know at http://www.reviewboard.org/users/ -~----------~----~----~----~------~----~------~--~--- To unsubscribe from this group, send email to reviewboard+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/reviewboard?hl=en