Hi,
I apologize for posting it again, I think my previous post got buried down.
I am getting a failure while uploading diff file using rbt post command. I have configured a bitbucket repo on ReviewBoard. The server is running on my local host.
My .reviewboardrc looks as follows:
REVIEWBOARD_URL = "
http://localhost"
REPOSITORY = "test-repo"
BRANCH = "master"
Configurations while adding Repo on ReviewBoard
Name: test-repo
Hosting Service: bitbucket
Account:
ka...@umd.eduRepo Type: Mercurial
Repo Plan: Personal
Repo Name:
test-reviewboard BugTracker: No
Access Control: kapil
Mercurial Version: 2.0.2
Command: rbt post --revision-range=30:51 --username=XXX --password=YYY -d --repository-type=mercurial
Output:
DEBUG:root:Checking for a Mercurial repository...
DEBUG:root:Running: hg showconfig
DEBUG:root:Running: hg root
DEBUG:root:Running: hg svn info
DEBUG:root:Command exited with rc 255: ['hg', 'svn', 'info']
hg: unknown command 'svn'
Mercurial Distributed SCM
basic commands:
add add the specified files on the next commit
annotate show changeset information by line for each file
clone make a copy of an existing repository
commit commit the specified files or all outstanding changes
diff diff repository (or selected files)
export dump the header and diffs for one or more changesets
forget forget the specified files on the next commit
init create a new repository in the given directory
log show revision history of entire repository or files
merge merge working directory with another revision
pull pull changes from the specified source
push push changes to the specified destination
remove remove the specified files on the next commit
serve start stand-alone webserver
status show changed files in the working directory
summary summarize working directory state
update update working directory (or switch revisions)
use "hg help" for the full list of commands or "hg -v" for details
---
DEBUG:root:Using candidate path 'default': '
https://ka...@bitbucket.org/kapil/test-reviewboard'
DEBUG:root:repository info: Path:
https://ka...@bitbucket.org/kapil/test-reviewboard, Base path: , Supports changesets: False
DEBUG:root:Making HTTP GET request to
http://localhost/api/DEBUG:root:Making HTTP GET request to
http://localhost/api/info/DEBUG:root:Running: hg parents --hidden -r 0
DEBUG:root:Command exited with rc 255: ['hg', 'parents', '--hidden', '-r', '0']
hg parents [-r REV] [FILE]
show the parents of the working directory or revision
options:
-r --rev REV show parents of the specified revision
--style STYLE display using template map file
--template TEMPLATE display with template
use "hg help parents" to show the full help text
---
DEBUG:root:Running: hg diff -r 30 -r 51 --config extensions.rbtoolsnormalize=/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-py2.7.egg/rbtools/helpers/hgext.py
DEBUG:root:Making HTTP GET request to
http://localhost/api/review-requests/DEBUG:root:Making HTTP POST request to
http://localhost/api/review-requests/DEBUG:root:Making HTTP GET request to
http://localhost/api/review-requests/50/diffs/DEBUG:root:Making HTTP POST request to
http://localhost/api/review-requests/50/diffs/DEBUG:root:Got API Error 105 (HTTP code 400): One or more fields had errors
DEBUG:root:Error data: {u'fields': {u'path': [u'error']}, u'stat': u'fail', u'err': {u'msg': u'One or more fields had errors', u'code': 105}}
Traceback (most recent call last):
File "/usr/local/bin/rbt", line 9, in <module>
load_entry_point('RBTools==0.5.3', 'console_scripts', 'rbt')()
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-py2.7.egg/rbtools/commands/main.py", line 127, in main
command.run_from_argv([RB_MAIN] + args)
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-py2.7.egg/rbtools/commands/__init__.py", line 158, in run_from_argv
exit_code = self.main(*args) or 0
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-py2.7.egg/rbtools/commands/post.py", line 659, in main
submit_as=self.options.submit_as)
File "/usr/local/lib/python2.7/dist-packages/RBTools-0.5.3-py2.7.egg/rbtools/commands/post.py", line 534, in post_request
raise CommandError('\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff
One or more fields had errors (HTTP 400, API Error 105)
path: error
Your review request still exists, but the diff is not attached.