final Repository repo = getRepository(true, event);
if (repo == null)
return null;
IResource[] resources = getSelectedResources(event);
CommitSelectionDialog dlg = new CommitSelectionDialog(getShell(event),
repo, resources);
if (dlg.open() != Window.OK)
return null;
final String commitId = dlg.getCommitId().getName();
IWorkbenchPage workBenchPage = PlatformUI.getWorkbench()
.getActiveWorkbenchWindow().getActivePage();
try {
CompareUtils.compare(resources, repo, Constants.HEAD, commitId,