1 package org.apache.maven.scm.provider.hg.command;
2
3 /*
4 * Licensed to the Apache Software Foundation (ASF) under one
5 * or more contributor license agreements. See the NOTICE file
6 * distributed with this work for additional information
7 * regarding copyright ownership. The ASF licenses this file
8 * to you under the Apache License, Version 2.0 (the
9 * "License"); you may not use this file except in compliance
10 * with the License. You may obtain a copy of the License at
11 *
12 * http://www.apache.org/licenses/LICENSE-2.0
13 *
14 * Unless required by applicable law or agreed to in writing,
15 * software distributed under the License is distributed on an
16 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17 * KIND, either express or implied. See the License for the
18 * specific language governing permissions and limitations
19 * under the License.
20 */
21
22
23 /**
24 * Available/Used hg commands.
25 * <p/>
26 * These commands do not necessarily correspond to the SCM API.
27 * Eg. "check in" is translated to be "commit" and "push".
28 *
29 * @author <a href="mailto:thurner.rupert@ymono.net">thurner rupert</a>
30 *
31 */
32 public final class HgCommandConstants
33 {
34
35 private HgCommandConstants()
36 {
37 // no o
38 }
39
40 /**
41 * Executable for Hg
42 */
43 public static final String EXEC = "hg";
44
45 /**
46 * Use to create an empty branch or before importing an existing project
47 */
48 public static final String INIT_CMD = "init";
49
50 /**
51 * Default recursive. Common option: --dry-run and --no-recursive
52 */
53 public static final String ADD_CMD = "add";
54
55 /**
56 * Reports the following states: added, removed, modified, unchanged, unknown
57 */
58 public static final String STATUS_CMD = "status";
59
60 /**
61 * Make a file unversioned
62 */
63 public static final String REMOVE_CMD = "remove";
64
65 /**
66 * Create a new copy of a branch. Alias get or clone
67 */
68 public static final String CLONE_CMD = "clone";
69
70 /**
71 * Create a new branch in the repo.
72 */
73 public static final String BRANCH_CMD = "branch";
74
75 /**
76 * Commit changes into a new revision
77 */
78 public static final String COMMIT_CMD = "commit";
79
80 /**
81 * update working-copy to tip
82 */
83 public static final String UPDATE_CMD = "update";
84
85 /**
86 * Pull any changes from another branch into the current one
87 */
88 public static final String PULL_CMD = "pull";
89
90 /**
91 * Show log of this branch Common option: --revision
92 */
93 public static final String LOG_CMD = "log";
94
95 /**
96 * Show differences in workingtree. Common option: --revision
97 */
98 public static final String DIFF_CMD = "diff";
99
100 /**
101 * Push this branch into another branch
102 */
103 public static final String PUSH_CMD = "push";
104
105 /**
106 * Show current revision number
107 */
108 public static final String REVNO_CMD = "id";
109
110 /**
111 * Tag this revision
112 */
113 public static final String TAG_CMD = "tag";
114
115 /**
116 * Show list of the current working copy or a revision
117 */
118 public static final String INVENTORY_CMD = "locate";
119
120 /**
121 * Outgoing changes command
122 */
123 public static final String OUTGOING_CMD = "outgoing";
124
125 /**
126 * Named branch command
127 */
128 public static final String BRANCH_NAME_CMD = "branch";
129
130 /**
131 * no recurse option does not exist in mercurial
132 */
133 public static final String NO_RECURSE_OPTION = "";
134
135 public static final String MESSAGE_OPTION = "--message";
136
137 public static final String REVISION_OPTION = "-r";
138
139 public static final String DATE_OPTION = "--date";
140
141 public static final String VERBOSE_OPTION = "--verbose";
142
143 public static final String NO_MERGES_OPTION = "--no-merges";
144
145 public static final String VERSION = "version";
146
147 public static final String CHECK = "check";
148
149 public static final String ALL_OPTION = "-A";
150
151 public static final String NEW_BRANCH_OPTION = "--new-branch";
152
153 public static final String CLEAN_OPTION = "-c";
154
155 /**
156 * limit number of changes displayed
157 */
158 public static final String LIMIT_OPTION = "--limit";
159
160 /**
161 * A template for the log output in order to decouple the date parsing from
162 * system and java locale, also helps avoiding bug due changes on the
163 * verbose format for log command.
164 */
165 public static final String TEMPLATE_OPTION = "--template \"changeset: {rev}:{node|short}\nbranch: {branch}\nuser: {author}\ndate: {date|isodatesec}\ntag: {tags}\nfiles: {files}\ndescription:\n{desc}\n\n\"";
166
167
168 }