using git, I am on a local branch that has diverged from master (and 
origin/master) by one commit.

I upgraded to 2.0.13, and I get the same error when trying to post a 
review. I honestly feel this is a problem in the tool:

06:40 $ rbt post -g yes --bugs-closed 19788098  -d
>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.1.0-x86_64-i386-64bit
>>> Home = /Users/user
>>> Current directory = /Users/user/Code/repo
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' is not a working copy
---
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.PR19788098.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
>>> Running: git config --get branch.PR19788098.remote
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
>>> Running: git config --get remote.origin.url
>>> repository info: Path: git@server:path/repo, Base path: , Supports 
changesets: False
>>> Making HTTP GET request to http://reviewboard/api/
>>> Cache directory '/Users/user/Library/Caches/rbtools' does not exist; 
creating.
>>> API cache '/Users/user/Library/Caches/rbtools/apicache.db' does not 
exist; creating.
>>> Running: git rev-parse refs/heads/PR19788098
>>> Running: git merge-base 3eea08c87f4ee336ec0d25108bc0224e7bbf5213 
origin/master
>>> Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
>>> Running: git status --porcelain --untracked-files=no
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8..3eea08c87f4ee336ec0d25108bc0224e7bbf5213
>>> Making HTTP GET request to http://reviewboard/api/validation/diffs/
>>> Added cache entry for HTTP GET request to 
http://reviewboard/api/validation/diffs/
>>> Making HTTP POST request to http://reviewboard/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): The specified diff file could not be 
parsed.
>>> Error data: {u'stat': u'fail', u'reason': u"fatal: Not a git 
repository: 'None'\n", u'err': {u'msg': u'The specified diff file could not 
be parsed.', u'code': 224}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 8, in <module>
    load_entry_point('RBTools==0.7.1.dev', 'console_scripts', 'rbt')()
  File "/Library/Python/2.6/site-packages/rbtools/commands/main.py", line 
133, in main
    command.run_from_argv([RB_MAIN, command_name] + args)
  File "/Library/Python/2.6/site-packages/rbtools/commands/__init__.py", 
line 538, in run_from_argv
    exit_code = self.main(*args) or 0
  File "/Library/Python/2.6/site-packages/rbtools/commands/post.py", line 
670, in main
    (msg_prefix, e))
rbtools.commands.CommandError: Error validating diff

The specified diff file could not be parsed. (HTTP 400, API Error 224)


However:

06:53 $ rbt post -g yes --bugs-closed 19788098 -d HEAD~
>>> RBTools 0.7.1
>>> Python 2.6.9 (unknown, Sep  9 2014, 15:05:12) 
[GCC 4.2.1 Compatible Apple LLVM 6.0 (clang-600.0.39)]
>>> Running on Darwin-14.1.0-x86_64-i386-64bit
>>> Home = /Users/user
>>> Current directory = /Users/user/Code/repo
>>> Checking for a Subversion repository...
>>> Running: svn info --non-interactive
>>> Command exited with rc 1: ['svn', 'info', '--non-interactive']
svn: E155007: '/Users/user/Code/repo' is not a working copy
---
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.PR19788098.merge
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.merge']
---
>>> Running: git config --get branch.PR19788098.remote
>>> Command exited with rc 1: ['git', 'config', '--get', 
u'branch.PR19788098.remote']
---
>>> Running: git config --get remote.origin.url
>>> repository info: Path: git@server:path/repo.git, Base path: , Supports 
changesets: False
>>> Making HTTP GET request to http://reviewboard/api/
>>> Running: git rev-parse HEAD~
>>> Running: git rev-parse 62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8^
>>> Running: git merge-base f7915b2b91f8f7d6cfa85e5046330e379754fbf4 
origin/master
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
f7915b2b91f8f7d6cfa85e5046330e379754fbf4..62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
>>> Making HTTP GET request to http://reviewboard/api/validation/diffs/
>>> Cached response for HTTP GET http://reviewboard/api/validation/diffs/ 
expired and was modified
>>> Making HTTP POST request to http://reviewboard/api/validation/diffs/
>>> Running: git log --reverse --pretty=format:%s%n%n%b 
^f7915b2b91f8f7d6cfa85e5046330e379754fbf4 
62ca39aa4ab94b9f0b5f55e75ce8138b63c8b1d8
>>> Making HTTP GET request to 
http://reviewboard/api/review-requests/?only-links=create&only-fields=
>>> Added cache entry for HTTP GET request to 
http://reviewboard/api/review-requests/?only-links=create&only-fields=
>>> Making HTTP POST request to http://reviewboard/api/review-requests/
>>> Making HTTP GET request to 
http://reviewboard/api/review-requests/2/diffs/?only-fields=
>>> Added cache entry for HTTP GET request to 
http://reviewboard/api/review-requests/2/diffs/?only-fields=
>>> Making HTTP POST request to 
http://reviewboard/api/review-requests/2/diffs/
>>> Making HTTP GET request to 
http://reviewboard/api/review-requests/2/draft/?only-fields=commit_id
>>> Added cache entry for HTTP GET request to 
http://reviewboard/api/review-requests/2/draft/?only-fields=commit_id
>>> Making HTTP PUT request to 
http://reviewboard/api/review-requests/2/draft/
Review request #2 posted.

http://reviewboard/r/2/
http://reviewboard/r/2/diff/

This, of course, posts a diff for the n-1 commit in the branch.

If I do:

rbt post -g yes --bugs-closed 19788098 -d HEAD

I get the identical output as the first attempt, with no revision specified.

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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 reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to