Skip to content

Commit

Permalink
[FIXED JENKINS-12261] UI fix for checkout option
Browse files Browse the repository at this point in the history
  • Loading branch information
brook-stevens authored and emonty committed Dec 31, 2011
1 parent 9bf2bcb commit ddcd518
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main/java/hudson/plugins/bazaar/BazaarSCM.java
Expand Up @@ -93,7 +93,7 @@ public boolean isClean() {
* True if we want to use checkout --lightweight
* @return
*/
public boolean useCheckout() {
public boolean isCheckout() {
return checkout;
}

Expand Down Expand Up @@ -267,7 +267,7 @@ private boolean update(boolean clean, AbstractBuild<?, ?> build, Launcher launch
private boolean pull(AbstractBuild<?, ?> build, Launcher launcher, FilePath workspace, BuildListener listener) throws InterruptedException {
ArgumentListBuilder args = new ArgumentListBuilder();
String verb = null;
if (useCheckout()) {
if (isCheckout()) {
verb = "update";
args.add(getDescriptor().getBzrExe(),
verb,
Expand Down Expand Up @@ -314,7 +314,7 @@ private boolean branch(AbstractBuild<?, ?> build, Launcher launcher, FilePath wo
return false;
}

String verb = useCheckout() ? "checkout" : "branch";
String verb = isCheckout() ? "checkout" : "branch";
ArgumentListBuilder args = new ArgumentListBuilder();
args.add(getDescriptor().getBzrExe(),
verb,
Expand Down

0 comments on commit ddcd518

Please sign in to comment.