view mercurial-common/src/jetbrains/buildServer/buildTriggers/vcs/mercurial/command/BookmarksCommand.java @ 529:33a6be414903

TW-17489 support bookmarks Now they can be used in the branch and branch spec fields
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Sat, 29 Dec 2012 18:32:56 +0400
parents
children 12b549d6fa98
line wrap: on
line source
package jetbrains.buildServer.buildTriggers.vcs.mercurial.command;

import jetbrains.buildServer.buildTriggers.vcs.mercurial.HgVersion;
import org.jetbrains.annotations.NotNull;
import java.io.File;


public class BookmarksCommand extends BranchesCommand {

  //hg 2.4 automatically pulls bookmarks
  public static final HgVersion REQUIRED_HG_VERSION = new HgVersion(2, 4, 0);

  public BookmarksCommand(@NotNull CommandSettings commandSettings,
                          @NotNull String hgPath,
                          @NotNull File workingDir,
                          @NotNull AuthSettings authSettings) {
    super(commandSettings, hgPath, workingDir, authSettings);
  }

  @NotNull
  @Override
  protected String getBranchesCommand() {
    return "bookmarks";
  }
}