2985: Can't add diff's to review, "The file was not found in the repository" using mercurial

andrea*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Jan. 17, 2014
What version are you running?
1.7.7.1

What's the URL of the page containing the problem?
Rb running on local server

What steps will reproduce the problem?
1. ./post-review -d

What is the expected output? What do you see instead?
I get a "Got API Error 207 (HTTP code 400): The file was not found in the repository" when posting a diff, but the review is created with not diff.

I would expect that the diff was attached to reg review.

What operating system are you using? What browser?
Ubuntu 13.04
Chrome

Please provide any additional information below.
>>> RBTools 0.5
>>> Python 2.7.4 (default, Apr 19 2013, 18:28:01) 
[GCC 4.7.3]
>>> Running on Linux-3.8.0-20-generic-x86_64-with-Ubuntu-13.04-raring
>>> Home = /home/andreas
>>> Current Directory = /home/andreas/projects/nexus
>>> Checking the repository type. Errors shown below are mostly harmless.
DEBUG:root:Using candidate path 'default': 'ssh://andreas@XXX.com/../../revisioncontrol/hg/c/p1/'
DEBUG:root:repository info: Path: ssh://andreas@XXX.com/../../revisioncontrol/hg/c/p1/, Base path: , Supports changesets: False
>>> Finished checking the repository type.
>>> HTTP GETting api/info/
DEBUG:root:Running: hg branch
DEBUG:root:Running: hg -q outgoing --template b:{branches}
r:{rev}

 default
DEBUG:root:Found outgoing changeset 1331 for branch 'default'
DEBUG:root:Running: hg log -r 1331 --template {parents}
DEBUG:root:Running: hg diff -r 1330 -r 1331
>>> HTTP GETting api/
>>> HTTP GETting http://XXX.com/api/info/
>>> Using the new web API
>>> Attempting to create review request on ssh://root@XXX.com/../../revisioncontrol/hg/c/p1/ for None
>>> HTTP POSTing to http://XXXX.com:/api/review-requests/: {'repository': 'ssh://root@XXX.com/../../revisioncontrol/hg/c/p1/'}
>>> Review request created
>>> Uploading diff, size: 301
>>> HTTP POSTing to http://XXX.com/api/review-requests/50/diffs/: {}
>>> Got API Error 207 (HTTP code 400): The file was not found in the repository
>>> Error data: {u'stat': u'fail', u'file': u'stack/src/makefile', u'err': {u'msg': u'The file was not found in the repository', u'code': 207}, u'revision': u'66f095225e49'}

Error uploading diff

Your review request still exists, but the diff is not attached.

It is a mercurial repo over ssh. There is some branches in the repo, but I'm using the default one.

What can I do to debug this issue more? I have enabled logging on the review server, but it do not shows any problems.
david
#1 david
The state of mercurial has improved a lot over the last few weeks. I believe this should be fixed in rbtools 0.6 (currently the 'master' branch).
  • +Fixed
#2 andrea*******@gmai***** (Google Code) (Is this you? Claim this profile.)
Where is the 0.6 version? I can only find 0.5.5.
david
#3 david
It's not released yet.