In the "Version Information" panel, try to include branchpoints
Summary:
Fixes T12040. In T12039, a user running local patches followed the report instructions as far as grabbing version information, but didn't update or revert their local changes or try against a clean install before reporting.
This obviously isn't ideal for us, but it's understandable (grabbing version information is much easier than upgrading/reverting), and we can do better about making this information useful: when compiling version information, try to figure out the branchpoint from a known upstream `master` branch by listing remotes, then running `git merge-base` against them.
Additionally, explicitly document that we want upstream hashes. We have to have a fallback case in this document anyway (for when you can't get to Config) so hopefully this makes it more likely that we get useful information in initial reports.
Test Plan: {F2229574}
Reviewers: chad
Reviewed By: chad
Maniphest Tasks: T12040
Differential Revision: https://secure.phabricator.com/D17103
This commit is contained in:
@@ -49,6 +49,29 @@ hash from the output. This may be useful if you're encountering an issue which
|
||||
prevents you from reaching the version reporting screen.
|
||||
|
||||
|
||||
Running a Fork?
|
||||
===============
|
||||
|
||||
If you've forked Phabricator and have local commits, please make sure you are
|
||||
reporting upstream commit hashes, not local commit hashes. The UI will attempt
|
||||
to figure out where you branched from, but it may not be able to in all cases.
|
||||
|
||||
If you report local commit hashes instead of upstream commit hashes we can not
|
||||
go look up the commit hashes to figure out which changes they correspond to, so
|
||||
we can not use that information to determine out how old your install is or
|
||||
which patches you are missing.
|
||||
|
||||
In most cases, you can find the upstream commit you've branched from like this:
|
||||
|
||||
```
|
||||
$ git merge-base HEAD origin/master
|
||||
````
|
||||
|
||||
Note that if you report a bug and have local commits, we will almost always ask
|
||||
you to reproduce the issue against a clean copy of Phabricator before we
|
||||
continue. You can get help faster by doing this //before// reporting an issue.
|
||||
|
||||
|
||||
Next Steps
|
||||
==========
|
||||
|
||||
|
||||
Reference in New Issue
Block a user