Fix: don't display all files from a merge-commit when auto-merge fails

The 60848f89959d41de83dfac2a0ee20d336cd7b3f1 tried to address the issue
that the Change Screen couldn't open for a patch set with merge commit
when the creation of an auto-merge tree failed in JGit (which happens
when the parents of the merge commit have multiple merge bases as JGit
doesn't support this case yet).  It considered the failure to create the
auto-merge tree as if the tree creation succeeded with conflicts. In
fact, the auto merge tree was empty and Gerrit considered all paths
as unmerged.  This caused several issues:
- the file list was too large for a project with large number of files
- Gerrit would send too many false notification emails to those watching
  changes under certain paths
- both client and server needed a lot of resources in order to handle
  such a large list of files

With this change the file list will be empty when creation of auto-merge
commit fails. This is not worse than showing a list of all files and it
resolves the issues listed above.

JGit will be able to auto-merge commits with multiple merge bases in a
near future [1] which will further reduce the number of cases where
Gerrit will incorrectly show an empty list of files for a patch-set with
merge commit.

[1] https://git.eclipse.org/r/8113

Change-Id: I76c51802f70d8d7f3d7cb797034ad19b77d84aa4
Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
Signed-off-by: Christian Halstrick <christian.halstrick@sap.com>
1 file changed