view mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 464:1dc564bac602

TW-22490
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Sun, 15 Jul 2012 17:10:45 +0400
parents 0d9919bd9685
children 25ec3dde8770
line wrap: on
line source
<%@include file="/include.jsp"%>
<%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
<jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>
<script type="text/javascript">
window.updateBranchName = function(repoPath) {
  if (repoPath.indexOf('#') != -1 && $('branchName').value == '') {
    $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1);
  }
}
</script>
<table class="runnerFormTable">

  <l:settingsGroup title="General Settings">
  <tr>
    <th><label for="hgCommandPath">HG Command Path: <l:star/></label></th>
    <td><props:textProperty name="hgCommandPath" className="longField" />
      <span class="error" id="error_hgCommandPath"></span></td>
  </tr>
  <tr>
    <th><label for="repositoryPath">Pull Changes From: <l:star/></label></th>
    <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/>
      <span class="error" id="error_repositoryPath"></span></td>
  </tr>
  <tr>
    <th><label for="branchName">Branch Name: </label></th>
    <td><props:textProperty name="branchName" /></td>
  </tr>
  <bs:branchSpecTableRow/>
  <tr>
    <th><label for="serverClonePath">Clone Repository To: </label></th>
    <td><props:textProperty name="serverClonePath" className="longField"/>
      <div class="smallNote" style="margin: 0;">Provide path to a parent directory on TeamCity server where a cloned repository should be created (applicable to "Automatically on server" checkout mode only). Leave blank to use default path.</div>
    </td>
  </tr>
  <tr>
    <th><label for="tagUsername">Username For Tags: </label></th>
    <td><props:textProperty name="tagUsername"/>
      <div class="smallNote" style="margin: 0;">Format: User Name &lt;email&gt;</div>
    </td>
  </tr>
  <tr>
    <th><label for="uncompressedTransfer">Use Uncompressed Transfer: </label></th>
    <td><props:checkboxProperty name="uncompressedTransfer"/>
      <div class="smallNote" style="margin: 0;">Uncompressed transfer is faster for repositories in the LAN.</div>
    </td>
  </tr>
  </l:settingsGroup>
  <l:settingsGroup title="Authorization settings">
  <tr>
    <th><label for="username">User Name:</label></th>
    <td>
      <props:textProperty name="username"/>
      <span class="smallNoteAttention">Leave blank to use settings from the server hgrc (see 'man hgrc' for details)</span>
    </td>
  </tr>
  <tr>
    <th><label for="secure:password">Password:</label></th>
    <td>
      <props:passwordProperty name="secure:password"/>
      <span class="smallNoteAttention">Leave blank to use settings from the server hgrc (see 'man hgrc' for details)</span>
    </td>
  </tr>
  </l:settingsGroup>

</table>