What steps will reproduce the problem?
1. Make a branch in SVN, say "1.0" for this example.
2. Add a new file in trunk, say ".gitignore" for this example.
3. In git, have remote branch git-svn/branches/1.0 and local branch 1.0.
4. git checkout -b new-1.0-fix 1.0
5. Hack hack hack, commit commit commit, decide you are ready for review now
At this point, I have tried two ways of using post-review:
6a. run post-review
6b. run post-review --parent=1.0
What is the expected output?
With one of these options, I'd like to have a review posted with a diff of
my changes compared to the 1.0 SVN branch.
What do you see instead?
a. Review is posted, but because the diff was taken against master, not
only is it incorrect, but because of issue 804 the diff is not viewable
because it shows .gitignore as deleted (because it was created on trunk
after the branch).
b. Here is the command line output:
[mono] ~/git-uia2atk-clone-test/gitorious-svn-test @ post-review
--parent=1.0 -d
>>> svn info
>>> git rev-parse --git-dir
>>> git svn info
>>> repository info: Path: svn+ssh://mono-cvs.ximian.com/source, Base path:
/branches/uia2atk/1.0, Supports changesets: False
>>> git diff --no-color --no-prefix -r -u 1.0..
>>> git svn find-rev master
>>> git diff --no-color --no-prefix -r -u master..1.0
>>> git svn find-rev master
>>> Looking for 'reviews.mono-a11y.org /' cookie in
/home/sandy/.post-review-cookies.txt
>>> Loaded valid cookie -- no login required
>>> Attempting to create review request for None
>>> HTTP POSTing to
http://reviews.mono-a11y.org/api/json/reviewrequests/new/:
{'repository_path': 'svn+ssh://mono-cvs.ximian.com/source'}
>>> Review request created
>>> Uploading diff, size: 345
>>> Uploading parent diff, size: 225010
>>> HTTP POSTing to
http://reviews.mono-a11y.org/api/json/reviewrequests/59/diff/new/:
{'basedir': '/branches/uia2atk/1.0'}
Error uploading diff: The file was not found in the repository (207)
>>> {'stat': 'fail', 'file': '/branches/uia2atk/1.0/.gitignore', 'err':
{'msg': 'The file was not found in the repository', 'code': 207},
'revision': '130499'}
Your review request still exists, but the diff is not attached.
Honestly I don't know if this is me misusing --parent, or an actual bug.
Please provide any additional information below.
Because I'm not sure if I'm misusing parent, I think I'm going to work up a
patch that adds the --gitsvnparent option, which lets me just make the diff
against my 1.0 branch, without dealing with this parentdiff stuff. I'd
like to be able to work on SVN branches via git-svn, and have post-review
work as well as it does from an SVN checkout.