annotate mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 834:80ae3dc66685

TW-18605 add support for 'hg purge'
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Sun, 01 Jun 2014 22:16:18 +0200
parents 31a1aca3305c
children e36e8d036ebd
rev   line source
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
1 <%@ page import="jetbrains.buildServer.serverSide.TeamCityProperties" %>
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
2 <%@ page import="jetbrains.buildServer.buildTriggers.vcs.mercurial.Constants" %>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
3 <%@include file="/include.jsp"%>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
4 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
732
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
5 <%--
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
6 ~ Copyright 2000-2014 JetBrains s.r.o.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
7 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
8 ~ Licensed under the Apache License, Version 2.0 (the "License");
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
9 ~ you may not use this file except in compliance with the License.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
10 ~ You may obtain a copy of the License at
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
11 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
12 ~ http://www.apache.org/licenses/LICENSE-2.0
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
13 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
14 ~ Unless required by applicable law or agreed to in writing, software
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
15 ~ distributed under the License is distributed on an "AS IS" BASIS,
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
16 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
17 ~ See the License for the specific language governing permissions and
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
18 ~ limitations under the License.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
19 --%>
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
20
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
21 <jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
22 <script type="text/javascript">
99
09cca4213a3d TW-11493
Pavel.Sher
parents: 62
diff changeset
23 window.updateBranchName = function(repoPath) {
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
24 if (repoPath.indexOf('#') != -1 && $('branchName').value == '') {
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
25 $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1);
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
26 }
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
27 }
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
28 </script>
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
29 <c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
30 <table class="runnerFormTable">
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
31
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
32 <l:settingsGroup title="General Settings">
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
33 <tr>
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
34 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
35 <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
36 <span class="error" id="error_repositoryPath"></span></td>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
37 </tr>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
38 <tr>
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
39 <th><label for="branchName">Default branch: </label></th>
469
25ec3dde8770 TW-23426
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 464
diff changeset
40 <td>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
41 <props:textProperty name="branchName" className="longField"/>
471
848c834e3d98 fix markup
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 469
diff changeset
42 <div class="smallNote" style="margin: 0;">Branch to be used if no branch from Branch Specification is set</div>
469
25ec3dde8770 TW-23426
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 464
diff changeset
43 </td>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
44 </tr>
463
0d9919bd9685 Use branchSpec tag
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 455
diff changeset
45 <bs:branchSpecTableRow/>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
46 <tr class="advancedSetting">
649
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
47 <th><label for="reportTagRevisions">Use tags as branches:</label></th>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
48 <td>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
49 <props:checkboxProperty name="useTagsAsBranches"/>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
50 <label for="reportTagRevisions">If enabled tags can be used in branch specification</label>
649
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
51 </td>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
52 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
53 <tr class="advancedSetting">
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
54 <th><label for="serverClonePath">Clone repository to: </label></th>
62
b328c6b6526d TW-5636: Mercurial plugin can easilly hit Windows MAX_PATH limitations
Pavel.Sher
parents: 57
diff changeset
55 <td><props:textProperty name="serverClonePath" className="longField"/>
b328c6b6526d TW-5636: Mercurial plugin can easilly hit Windows MAX_PATH limitations
Pavel.Sher
parents: 57
diff changeset
56 <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>
b328c6b6526d TW-5636: Mercurial plugin can easilly hit Windows MAX_PATH limitations
Pavel.Sher
parents: 57
diff changeset
57 </td>
b328c6b6526d TW-5636: Mercurial plugin can easilly hit Windows MAX_PATH limitations
Pavel.Sher
parents: 57
diff changeset
58 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
59 <tr class="advancedSetting">
544
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
60 <th><label for="detectSubrepoChanges">Detect subrepo changes: </label></th>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
61 <td>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
62 <props:checkboxProperty name="detectSubrepoChanges"/>
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
63 <c:if test="${subreposGloballyDisabled}">
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
64 <div class="smallNote" style="margin: 0;">Currently <b>disabled</b> for the entire server with 'teamcity.hg.detectSubrepoChanges' internal property.</div>
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
65 </c:if>
544
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
66 </td>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
67 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
68 <tr class="advancedSetting">
672
8b09ec36fbef Ability to specify an author of the merge commit
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 651
diff changeset
69 <th><label for="tagUsername">Username for tags/merge: </label></th>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
70 <td><props:textProperty name="tagUsername" className="longField"/>
385
62f273711a49 TW-20263 add note for tag name format
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 371
diff changeset
71 <div class="smallNote" style="margin: 0;">Format: User Name &lt;email&gt;</div>
62f273711a49 TW-20263 add note for tag name format
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 371
diff changeset
72 </td>
371
24d926f22e85 TW-16045 allow specify username for tags
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 170
diff changeset
73 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
74 <tr class="advancedSetting">
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
75 <th><label for="uncompressedTransfer">Use uncompressed transfer: </label></th>
170
48a9978eaa37 Add option in UI
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 99
diff changeset
76 <td><props:checkboxProperty name="uncompressedTransfer"/>
48a9978eaa37 Add option in UI
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 99
diff changeset
77 <div class="smallNote" style="margin: 0;">Uncompressed transfer is faster for repositories in the LAN.</div>
48a9978eaa37 Add option in UI
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 99
diff changeset
78 </td>
48a9978eaa37 Add option in UI
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 99
diff changeset
79 </tr>
499
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
80 <tr>
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
81 <th><label for="hgCommandPath">HG command path: <l:star/></label></th>
499
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
82 <td>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
83 <props:textProperty name="hgCommandPath" className="longField" />
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
84 <span class="error" id="error_hgCommandPath"></span>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
85 </td>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
86 </tr>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
87 </l:settingsGroup>
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
88 <l:settingsGroup title="Authorization Settings">
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
89 <tr>
603
256d3fc22a28 fix capitalization: labels should have first word capitalized only, while titles should have all words capitalized
Pavel.Sher
parents: 573
diff changeset
90 <th><label for="username">User name:</label></th>
437
585a23bc9400 Add note on settings from server hgrc
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 385
diff changeset
91 <td>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
92 <props:textProperty name="username" className="longField"/>
517
9c22b0679417 TW-22167 don't use yellow triangles
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 499
diff changeset
93 <span class="smallNote">Leave blank to use settings from the server hgrc (see 'man hgrc' for details)</span>
437
585a23bc9400 Add note on settings from server hgrc
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 385
diff changeset
94 </td>
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
95 </tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
96 <tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
97 <th><label for="secure:password">Password:</label></th>
437
585a23bc9400 Add note on settings from server hgrc
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 385
diff changeset
98 <td>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
99 <props:passwordProperty name="secure:password" className="longField"/>
517
9c22b0679417 TW-22167 don't use yellow triangles
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 499
diff changeset
100 <span class="smallNote">Leave blank to use settings from the server hgrc (see 'man hgrc' for details)</span>
437
585a23bc9400 Add note on settings from server hgrc
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 385
diff changeset
101 </td>
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
102 </tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
103 </l:settingsGroup>
834
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
104 <l:settingsGroup title="Agent Settings" className="advancedSetting">
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
105 <tr class="advancedSetting">
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
106 <td colspan="2">Agent-specific settings that are used in case of agent checkout.</td>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
107 </tr>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
108 <tr class="advancedSetting">
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
109 <th>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
110 <label for="purgePolicy">Purge settings:</label>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
111 </th>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
112 <td>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
113 <props:selectProperty name="purgePolicy" enableFilter="true" className="mediumField">
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
114 <props:option value="">Don't run purge</props:option>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
115 <props:option value="PURGE_UNKNOWN">Purge unknown files</props:option>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
116 <props:option value="PURGE_ALL">Purge ignored & unknown files</props:option>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
117 </props:selectProperty>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
118 </td>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
119 </tr>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
120 </l:settingsGroup>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
121 </table>