annotate mercurial-server/resources/buildServerResources/mercurialSettings.jsp @ 672:8b09ec36fbef

Ability to specify an author of the merge commit
author Dmitry Neverov <dmitry.neverov@jetbrains.com>
date Fri, 18 Oct 2013 15:07:44 +0400
parents 3db16531f7ba
children c0b08dd02418
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" %>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
5 <jsp:useBean id="propertiesBean" scope="request" type="jetbrains.buildServer.controllers.BasePropertiesBean"/>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
6 <script type="text/javascript">
99
09cca4213a3d TW-11493
Pavel.Sher
parents: 62
diff changeset
7 window.updateBranchName = function(repoPath) {
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
8 if (repoPath.indexOf('#') != -1 && $('branchName').value == '') {
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
9 $('branchName').value = repoPath.substring(repoPath.indexOf('#')+1);
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
10 }
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
11 }
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
12 </script>
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
13 <c:set var="subreposGloballyDisabled" value="<%= !TeamCityProperties.getBooleanOrTrue(Constants.GLOBAL_DETECT_SUBREPO_CHANGES) %>"/>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
14 <table class="runnerFormTable">
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
15
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
16 <l:settingsGroup title="General Settings">
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
17 <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
18 <th><label for="repositoryPath">Pull changes from: <l:star/></label></th>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
19 <td><props:textProperty name="repositoryPath" className="longField" onchange="updateBranchName(this.value)"/>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
20 <span class="error" id="error_repositoryPath"></span></td>
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
21 </tr>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
22 <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
23 <th><label for="branchName">Default branch: </label></th>
469
25ec3dde8770 TW-23426
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 464
diff changeset
24 <td>
25ec3dde8770 TW-23426
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 464
diff changeset
25 <props:textProperty name="branchName" />
471
848c834e3d98 fix markup
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 469
diff changeset
26 <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
27 </td>
57
99e757f2527b branches support
Pavel.Sher
parents: 45
diff changeset
28 </tr>
463
0d9919bd9685 Use branchSpec tag
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 455
diff changeset
29 <bs:branchSpecTableRow/>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
30 <tr class="advancedSetting">
649
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
31 <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
32 <td>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
33 <props:checkboxProperty name="useTagsAsBranches"/>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
34 <div class="smallNote" style="margin: 0">If enabled tags can be used in branch specification</div>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
35 </td>
0b50d7952a7d TW-23468 support tags as branches
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 603
diff changeset
36 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
37 <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
38 <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
39 <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
40 <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
41 </td>
b328c6b6526d TW-5636: Mercurial plugin can easilly hit Windows MAX_PATH limitations
Pavel.Sher
parents: 57
diff changeset
42 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
43 <tr class="advancedSetting">
544
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
44 <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
45 <td>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
46 <props:checkboxProperty name="detectSubrepoChanges"/>
573
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
47 <c:if test="${subreposGloballyDisabled}">
91b58ee782ac TW-26913
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 544
diff changeset
48 <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
49 </c:if>
544
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
50 </td>
4ff88460fb5d UI option for subrepo changes
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 517
diff changeset
51 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
52 <tr class="advancedSetting">
672
8b09ec36fbef Ability to specify an author of the merge commit
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 651
diff changeset
53 <th><label for="tagUsername">Username for tags/merge: </label></th>
385
62f273711a49 TW-20263 add note for tag name format
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 371
diff changeset
54 <td><props:textProperty name="tagUsername"/>
62f273711a49 TW-20263 add note for tag name format
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 371
diff changeset
55 <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
56 </td>
371
24d926f22e85 TW-16045 allow specify username for tags
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 170
diff changeset
57 </tr>
651
3db16531f7ba mercurial adv settings
Pavel.Sher
parents: 649
diff changeset
58 <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
59 <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
60 <td><props:checkboxProperty name="uncompressedTransfer"/>
48a9978eaa37 Add option in UI
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 99
diff changeset
61 <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
62 </td>
48a9978eaa37 Add option in UI
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 99
diff changeset
63 </tr>
499
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
64 <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
65 <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
66 <td>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
67 <props:textProperty name="hgCommandPath" className="longField" />
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
68 <span class="error" id="error_hgCommandPath"></span>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
69 </td>
a7753de2a27a Move hg path to the bottom
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 471
diff changeset
70 </tr>
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
71 </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
72 <l:settingsGroup title="Authorization Settings">
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
73 <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
74 <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
75 <td>
585a23bc9400 Add note on settings from server hgrc
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 385
diff changeset
76 <props:textProperty name="username"/>
517
9c22b0679417 TW-22167 don't use yellow triangles
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 499
diff changeset
77 <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
78 </td>
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
79 </tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
80 <tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
81 <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
82 <td>
585a23bc9400 Add note on settings from server hgrc
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 385
diff changeset
83 <props:passwordProperty name="secure:password"/>
517
9c22b0679417 TW-22167 don't use yellow triangles
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 499
diff changeset
84 <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
85 </td>
45
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
86 </tr>
4059fcc5473e ask for credentials on mercurial settings page
Pavel.Sher
parents: 27
diff changeset
87 </l:settingsGroup>
371
24d926f22e85 TW-16045 allow specify username for tags
Dmitry Neverov <dmitry.neverov@jetbrains.com>
parents: 170
diff changeset
88
0
a530ea876f55 mercurial support sources added
Pavel.Sher
parents:
diff changeset
89 </table>