monitor.beginTask(UIText.CreateBranchPage_CreatingBranchMessage,
IProgressMonitor.UNKNOWN);
String newRefName = getBranchName();
final CreateLocalBranchOperation cbop;
if (myBaseCommit != null
&& this.sourceRefName.equals(myBaseCommit.name()))
cbop = new CreateLocalBranchOperation(myRepository, newRefName,
myBaseCommit);
else
cbop = new CreateLocalBranchOperation(myRepository, newRefName,
myRepository.getRef(this.sourceRefName),
upstreamConfig);
cbop.execute(monitor);
if (checkout.getSelection()) {
if (monitor.isCanceled())
return;
monitor.beginTask(UIText.CreateBranchPage_CheckingOutMessage,