Skip to content

[tools] Improve error reporting when trying to create API/generator diff for a pull request with conflicts. - #3966

Merged
rolfbjarne merged 1 commit into
dotnet:masterfrom
rolfbjarne:commit-diff-better-merge-failure-reporting
Apr 20, 2018
Merged

[tools] Improve error reporting when trying to create API/generator diff for a pull request with conflicts.#3966
rolfbjarne merged 1 commit into
dotnet:masterfrom
rolfbjarne:commit-diff-better-merge-failure-reporting

Conversation

@rolfbjarne

Copy link
Copy Markdown
Member

We can't create an API/generator diff for a pull request with conflicts, so
detect this scenario and show a better error than this (from #3961):

Comparing the changes between origin/pr/3961/merge^1 and HEAD:
fatal: ambiguous argument 'origin/pr/3961/merge^1..HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
fatal: ambiguous argument 'origin/pr/3961/merge^1': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'

…iff for a pull request with conflicts.

We can't create an API/generator diff for a pull request with conflicts, so
detect this scenario and show a better error than this (from dotnet#3961):

    Comparing the changes between origin/pr/3961/merge^1 and HEAD:
    fatal: ambiguous argument 'origin/pr/3961/merge^1..HEAD': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
    fatal: ambiguous argument 'origin/pr/3961/merge^1': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
@monojenkins

Copy link
Copy Markdown
Contributor

Build success
Build comment file:

Provisioning succeeded
Build succeeded
API Diff (from stable)
API Diff (from PR only)
Generator Diff
Test run succeeded


@rolfbjarne
rolfbjarne merged commit d214f86 into dotnet:master Apr 20, 2018
rolfbjarne added a commit to rolfbjarne/macios that referenced this pull request Jun 12, 2018
…iff for a pull request with conflicts. (dotnet#3966)

We can't create an API/generator diff for a pull request with conflicts, so
detect this scenario and show a better error than this (from dotnet#3961):

    Comparing the changes between origin/pr/3961/merge^1 and HEAD:
    fatal: ambiguous argument 'origin/pr/3961/merge^1..HEAD': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
    fatal: ambiguous argument 'origin/pr/3961/merge^1': unknown revision or path not in the working tree.
    Use '--' to separate paths from revisions, like this:
    'git <command> [<revision>...] -- [<file>...]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants