annotate mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 1100:5e149d6cc0d2 release/2022.04 tip

bump log4j2 version (grafted from abd9f4f2e7b62f133f25c9cd55b21634856743ae)
author Maxim Zaytsev
date Wed, 27 Apr 2022 15:30:07 +0200
parents 26edd3fdaf8a
children
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" %>
899
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
3 <%@ page import="jetbrains.buildServer.util.StringUtil" %>
979
2b1bd4bca6ad TW-50054 support custom clone path whitelist
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 978
diff changeset
4 <%@ page import="jetbrains.buildServer.buildTriggers.vcs.mercurial.ServerPluginConfigImpl" %>
2b1bd4bca6ad TW-50054 support custom clone path whitelist
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 978
diff changeset
5 <%@ page import="jetbrains.buildServer.buildTriggers.vcs.mercurial.command.HgVcsRoot" %>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
6 <%@include file="/include.jsp"%>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
7 <%@ taglib prefix="props" tagdir="/WEB-INF/tags/props" %>
732
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
8 <%--
976
7bf4d943d5bb Update copyright
pavel.sher
parents: 938
diff changeset
9 ~ Copyright 2000-2018 JetBrains s.r.o.
732
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
10 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
11 ~ Licensed under the Apache License, Version 2.0 (the "License");
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
12 ~ 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
13 ~ You may obtain a copy of the License at
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
14 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
15 ~ http://www.apache.org/licenses/LICENSE-2.0
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
16 ~
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
17 ~ Unless required by applicable law or agreed to in writing, software
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
18 ~ distributed under the License is distributed on an "AS IS" BASIS,
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
19 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
20 ~ See the License for the specific language governing permissions and
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
21 ~ limitations under the License.
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
22 --%>
31a1aca3305c Update copyright
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 683
diff changeset
23
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
24 <jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
25 <script type="text/javascript">
99
09cca4213a3d TW-11493
Pavel.Sher
parents: 62
diff changeset
26 window.updateBranchName = function(repoPath) {
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
27 if (repoPath.indexOf('#') != -1 && $('branchName').value == '') {
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
28 $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1);
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
29 }
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
30 }
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
31 </script>
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
32 <c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/>
979
2b1bd4bca6ad TW-50054 support custom clone path whitelist
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 978
diff changeset
33 <c:set var="showCustomClonePath" value="<%=
2b1bd4bca6ad TW-50054 support custom clone path whitelist
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 978
diff changeset
34 TeamCityProperties.getBoolean(Constants.CUSTOM_CLONE_PATH_ENABLED) &&
2b1bd4bca6ad TW-50054 support custom clone path whitelist
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 978
diff changeset
35 (TeamCityProperties.getBoolean(Constants.SHOW_CUSTOM_CLONE_PATH) || !StringUtil.isEmpty(propertiesBean.getProperties().get(Constants.SERVER_CLONE_PATH_PROP))) ||
2b1bd4bca6ad TW-50054 support custom clone path whitelist
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 978
diff changeset
36 HgVcsRoot.hasCustomClonePathWhitelist() %>"/>
1000
6e4a700806e4 TW-55764: hide Uncompressed transfer option as we no longer support it (since version 9 0)
pavel.sher
parents: 991
diff changeset
37 <c:set var="hasUncompressedTransferOption" value='<%=!StringUtil.isEmpty(propertiesBean.getProperties().get("uncompressedTransfer"))%>'/>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
38 <table class="runnerFormTable">
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
39
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
40 <l:settingsGroup title="General Settings">
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
41 <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
42 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
43 <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/>
938
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
44 <jsp:include page="/admin/repositoryControls.html?projectId=${parentProject.externalId}&vcsType=hg"/>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
45 <span class="error" id="error_repositoryPath"></span></td>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
46 </tr>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
47 <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
48 <th><label for="branchName">Default branch: </label></th>
469
25ec3dde8770 TW-23426
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 464
diff changeset
49 <td>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
50 <props:textProperty name="branchName" className="longField"/>
840
e36e8d036ebd Wording
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 834
diff changeset
51 <div class="smallNote" style="margin: 0;">The main branch to be monitored</div>
1069
26edd3fdaf8a TW-70693
victory.bedrosova
parents: 1003
diff changeset
52 <span class="error" id="error_branchName"></span>
469
25ec3dde8770 TW-23426
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 464
diff changeset
53 </td>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
54 </tr>
463
0d9919bd9685 Use branchSpec tag
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 455
diff changeset
55 <bs:branchSpecTableRow/>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
56 <tr class="advancedSetting">
649
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
57 <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
58 <td>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
59 <props:checkboxProperty name="useTagsAsBranches"/>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
60 <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
61 </td>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
62 </tr>
899
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
63 <c:if test="${showCustomClonePath}">
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
64 <tr class="advancedSetting">
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
65 <th><label for="serverClonePath">Clone repository to: </label></th>
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
66 <td><props:textProperty name="serverClonePath" className="longField"/>
987
dd8d37d45ed2 Links to docs
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 983
diff changeset
67 <div class="smallNote" style="margin: 0;">
dd8d37d45ed2 Links to docs
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 983
diff changeset
68 Provide path to a parent directory on TeamCity server where a cloned repository
dd8d37d45ed2 Links to docs
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 983
diff changeset
69 should be created. Leave blank to use default path. Custom path will only be used
989
cd2e9f29587f fix links
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 987
diff changeset
70 if included into whitelist.<bs:help file="Mercurial" anchor="cloneto"/>
987
dd8d37d45ed2 Links to docs
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 983
diff changeset
71 </div>
899
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
72 </td>
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
73 </tr>
e7b716719044 TW-36401 hide 'Clone repository to' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 898
diff changeset
74 </c:if>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
75 <tr class="advancedSetting">
544
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
76 <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
77 <td>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
78 <props:checkboxProperty name="detectSubrepoChanges"/>
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
79 <c:if test="${subreposGloballyDisabled}">
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
80 <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
81 </c:if>
544
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
82 </td>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
83 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
84 <tr class="advancedSetting">
672
8b09ec36fbef Ability to specify an author of the merge commit
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 651
diff changeset
85 <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
86 <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
87 <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
88 </td>
371
24d926f22e85 TW-16045 allow specify username for tags
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 170
diff changeset
89 </tr>
499
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
90 <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
91 <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
92 <td>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
93 <props:textProperty name="hgCommandPath" className="longField" />
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
94 <span class="error" id="error_hgCommandPath"></span>
989
cd2e9f29587f fix links
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 987
diff changeset
95 <div class="smallNote" style="margin: 0;">The path will be used on TeamCity server only if it is included into whitelist.<bs:help file="Mercurial" anchor="hgpath"/></div>
499
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
96 </td>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
97 </tr>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
98 </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
99 <l:settingsGroup title="Authorization Settings">
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
100 <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
101 <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
102 <td>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
103 <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
104 <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
105 </td>
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
106 </tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
107 <tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
108 <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
109 <td>
683
c0b08dd02418 Align fields width
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 672
diff changeset
110 <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
111 <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
112 </td>
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
113 </tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
114 </l:settingsGroup>
834
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
115 <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
116 <tr class="advancedSetting">
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
117 <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
118 </tr>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
119 <tr class="advancedSetting">
991
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
120 <th><label for="customHgConfig">Mercurial config:</label></th>
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
121 <td>
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
122 <props:multilineProperty name="customHgConfig" className="longField" linkTitle="Edit mercurial config" expanded="${true}" rows="3" cols="60"/>
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
123 <span class="error" id="error_customHgConfig"></span>
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
124 </td>
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
125 </tr>
f342d25311c1 TW-50054 disable custom hg config on server by default
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 989
diff changeset
126 <tr class="advancedSetting">
834
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
127 <th>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
128 <label for="purgePolicy">Purge settings:</label>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
129 </th>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
130 <td>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
131 <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
132 <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
133 <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
134 <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
135 </props:selectProperty>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
136 </td>
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
137 </tr>
896
4e29b1244707 Add VCS root option to use shared mirrors during agent-side checkout
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 871
diff changeset
138 <tr class="advancedSetting">
898
638d979c6117 Polishing 'use mirrors' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 896
diff changeset
139 <th><label for="useSharedMirrors">Use mirrors:</label></th>
638d979c6117 Polishing 'use mirrors' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 896
diff changeset
140 <td>
638d979c6117 Polishing 'use mirrors' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 896
diff changeset
141 <props:checkboxProperty name="useSharedMirrors"/>
638d979c6117 Polishing 'use mirrors' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 896
diff changeset
142 <div class="smallNote" style="margin: 0" >
924
ef9d14cbca44 wording
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 900
diff changeset
143 When this option is enabled, TeamCity creates a separate clone of the repository on each agent
ef9d14cbca44 wording
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 900
diff changeset
144 and uses it in the checkout directory via mercurial share extension.
898
638d979c6117 Polishing 'use mirrors' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 896
diff changeset
145 </div>
1000
6e4a700806e4 TW-55764: hide Uncompressed transfer option as we no longer support it (since version 9 0)
pavel.sher
parents: 991
diff changeset
146 <c:if test="${hasUncompressedTransferOption}">
6e4a700806e4 TW-55764: hide Uncompressed transfer option as we no longer support it (since version 9 0)
pavel.sher
parents: 991
diff changeset
147 <%-- we preserve this parameter because we don't want to show "Changes are not saved" stripe when user opens the edit VCS root page --%>
6e4a700806e4 TW-55764: hide Uncompressed transfer option as we no longer support it (since version 9 0)
pavel.sher
parents: 991
diff changeset
148 <props:hiddenProperty name="uncompressedTransfer"/>
6e4a700806e4 TW-55764: hide Uncompressed transfer option as we no longer support it (since version 9 0)
pavel.sher
parents: 991
diff changeset
149 </c:if>
898
638d979c6117 Polishing 'use mirrors' option
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 896
diff changeset
150 </td>
896
4e29b1244707 Add VCS root option to use shared mirrors during agent-side checkout
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 871
diff changeset
151 </tr>
834
80ae3dc66685 TW-18605 add support for 'hg purge'
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 732
diff changeset
152 </l:settingsGroup>
938
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
153 <script type="text/javascript">
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
154 $j(document).ready(function() {
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
155 if (BS.Repositories != null) {
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
156 BS.Repositories.installControls($('repositoryPath'), function (repoInfo, cre) {
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
157 $('repositoryPath').value = repoInfo.repositoryUrl;
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
158 if (cre != null) {
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
159 $('username').value = cre.oauthLogin;
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
160 }
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
161 });
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
162 } else {
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
163 $j('.listRepositoriesControls').hide();
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
164 }
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
165 });
12ea02234103 Show oauth connections
Dmitry Neverov <dmitry.neverov@gmail.com>
parents: 924
diff changeset
166 </script>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
167 </table>