Sorry for a late reply, I somehow missed this email. My hg version is 2.0.2
--Kapil On Thursday, February 6, 2014 3:39:50 PM UTC-5, David Trowbridge wrote: > > Kapil, > > What version of hg is installed? > > -David > > > On Thu, Feb 6, 2014 at 12:36 PM, Kapil Anand <[email protected]<javascript:> > > wrote: > >> Hi, >> >> 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: [email protected] <javascript:> >> Repo Type: Mercurial >> Repo Plan: Personal >> Repo Name: >> test-reviewboard<https://[email protected]/kapil/test-reviewboard> >> BugTracker: No >> Access Control: kapil >> >> 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://[email protected]/kapil/test-reviewboard' >> DEBUG:root:repository info: Path: >> https://[email protected]/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. >> >> >> >> Not sure what the error is. When I try to upload the diff file (generated >> by hg diff or rbt diff) manually onto sever, it again gives an error (but >> does not give any message). >> >> Thanks >> >> ---Kapil >> >> >> -- >> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ >> --- >> Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ >> --- >> Happy user? Let us know at http://www.reviewboard.org/users/ >> --- >> You received this message because you are subscribed to the Google Groups >> "reviewboard" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/ --- Sign up for Review Board hosting at RBCommons: https://rbcommons.com/ --- Happy user? Let us know at http://www.reviewboard.org/users/ --- You received this message because you are subscribed to the Google Groups "reviewboard" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
