comparison mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 57:99e757f2527b

branches support
author Pavel.Sher
date Sun, 26 Oct 2008 16:23:50 +0300
parents 4059fcc5473e
children b328c6b6526d
comparison
equal deleted inserted replaced
56:45366338965b 57:99e757f2527b
1 <%@include file="/include.jsp"%> 1 <%@include file="/include.jsp"%>
2 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %> 2 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
3 <jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/> 3 <jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>
4 <script type="text/javascript">
5 function updateBranchName(repoPath) {
6 if (repoPath.indexOf('#') != -1 && $('branchName').value == '') {
7 $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1);
8 }
9 }
10 </script>
4 <table class="runnerFormTable"> 11 <table class="runnerFormTable">
5 12
6 <l:settingsGroup title="General Settings"> 13 <l:settingsGroup title="General Settings">
7 <tr> 14 <tr>
8 <th><label for="hgCommandPath">HG command path: <l:star/></label></th> 15 <th><label for="hgCommandPath">HG command path: <l:star/></label></th>
9 <td><props:textProperty name="hgCommandPath" className="longField" /> 16 <td><props:textProperty name="hgCommandPath" className="longField" />
10 <span class="error" id="error_hgCommandPath"></span></td> 17 <span class="error" id="error_hgCommandPath"></span></td>
11 </tr> 18 </tr>
12 <tr> 19 <tr>
13 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th> 20 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th>
14 <td><props:textProperty name="repositoryPath" className="longField" /> 21 <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/>
15 <span class="error" id="error_repositoryPath"></span></td> 22 <span class="error" id="error_repositoryPath"></span></td>
23 </tr>
24 <tr>
25 <th><label for="branchName">Branch name: </label></th>
26 <td><props:textProperty name="branchName" /></td>
16 </tr> 27 </tr>
17 </l:settingsGroup> 28 </l:settingsGroup>
18 <l:settingsGroup title="Authorization settings"> 29 <l:settingsGroup title="Authorization settings">
19 <tr> 30 <tr>
20 <td colspan="2">You may require to provide authorization settings if you need to tag / label sources in the remote repository.</td> 31 <td colspan="2">You may require to provide authorization settings if you need to tag / label sources in the remote repository.</td>