| 1 |
.TH HG STATUS "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg status \- show changed files in the working directory |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg status [OPTION]... [FILE]... |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
Show status of files in the repository. If names are given, only |
| 16 |
files that match are shown. Files that are clean or ignored or |
| 17 |
the source of a copy/move operation, are not listed unless |
| 18 |
\-c/\-\-clean, \-i/\-\-ignored, \-C/\-\-copies or \-A/\-\-all are given. |
| 19 |
Unless options described with "show only ..." are given, the |
| 20 |
options \-mardu are used. |
| 21 |
.sp |
| 22 |
Option \-q/\-\-quiet hides untracked (unknown and ignored) files |
| 23 |
unless explicitly requested with \-u/\-\-unknown or \-i/\-\-ignored. |
| 24 |
.IP Note |
| 25 |
. |
| 26 |
\%\fBhg status\fP\: may appear to disagree with diff if permissions have |
| 27 |
changed or a merge has occurred. The standard diff format does |
| 28 |
not report permission changes and diff only reports changes |
| 29 |
relative to one merge parent. |
| 30 |
.RE |
| 31 |
.sp |
| 32 |
If one revision is given, it is used as the base revision. |
| 33 |
If two revisions are given, the differences between them are |
| 34 |
shown. The \-\-change option can also be used as a shortcut to list |
| 35 |
the changed files of a revision from its first parent. |
| 36 |
.sp |
| 37 |
The codes used to show the status of files are: |
| 38 |
.sp |
| 39 |
.nf |
| 40 |
.ft C |
| 41 |
M = modified |
| 42 |
A = added |
| 43 |
R = removed |
| 44 |
C = clean |
| 45 |
! = missing (deleted by non\-hg command, but still tracked) |
| 46 |
? = not tracked |
| 47 |
I = ignored |
| 48 |
= origin of the previous file (with \-\-copies) |
| 49 |
.ft P |
| 50 |
.fi |
| 51 |
.sp |
| 52 |
The \-t/\-\-terse option abbreviates the output by showing only the directory |
| 53 |
name if all the files in it share the same status. The option takes an |
| 54 |
argument indicating the statuses to abbreviate: \(aqm\(aq for \(aqmodified\(aq, \(aqa\(aq |
| 55 |
for \(aqadded\(aq, \(aqr\(aq for \(aqremoved\(aq, \(aqd\(aq for \(aqdeleted\(aq, \(aqu\(aq for \(aqunknown\(aq, \(aqi\(aq |
| 56 |
for \(aqignored\(aq and \(aqc\(aq for clean. |
| 57 |
.sp |
| 58 |
It abbreviates only those statuses which are passed. Note that clean and |
| 59 |
ignored files are not displayed with \(aq\-\-terse ic\(aq unless the \-c/\-\-clean |
| 60 |
and \-i/\-\-ignored options are also used. |
| 61 |
.sp |
| 62 |
The \-v/\-\-verbose option shows information when the repository is in an |
| 63 |
unfinished merge, shelve, rebase state etc. You can have this behavior |
| 64 |
turned on by default by enabling the \fBcommands.status.verbose\fP option. |
| 65 |
.sp |
| 66 |
You can skip displaying some of these states by setting |
| 67 |
\fBcommands.status.skipstates\fP to one or more of: \(aqbisect\(aq, \(aqgraft\(aq, |
| 68 |
\(aqhistedit\(aq, \(aqmerge\(aq, \(aqrebase\(aq, or \(aqunshelve\(aq. |
| 69 |
.sp |
| 70 |
Template: |
| 71 |
.sp |
| 72 |
The following keywords are supported in addition to the common template |
| 73 |
keywords and functions. See also \%\fBhg help templates\fP\:. |
| 74 |
.INDENT 0.0 |
| 75 |
.TP |
| 76 |
.B path |
| 77 |
. |
| 78 |
String. Repository\-absolute path of the file. |
| 79 |
.TP |
| 80 |
.B source |
| 81 |
. |
| 82 |
String. Repository\-absolute path of the file originated from. |
| 83 |
Available if \fB\-\-copies\fP is specified. |
| 84 |
.TP |
| 85 |
.B status |
| 86 |
. |
| 87 |
String. Character denoting file\(aqs status. |
| 88 |
.UNINDENT |
| 89 |
.sp |
| 90 |
Examples: |
| 91 |
.INDENT 0.0 |
| 92 |
.IP \(bu 2 |
| 93 |
. |
| 94 |
show changes in the working directory relative to a |
| 95 |
changeset: |
| 96 |
.sp |
| 97 |
.nf |
| 98 |
.ft C |
| 99 |
hg status \-\-rev 9353 |
| 100 |
.ft P |
| 101 |
.fi |
| 102 |
.IP \(bu 2 |
| 103 |
. |
| 104 |
show changes in the working directory relative to the |
| 105 |
current directory (see \%\fBhg help patterns\fP\: for more information): |
| 106 |
.sp |
| 107 |
.nf |
| 108 |
.ft C |
| 109 |
hg status re: |
| 110 |
.ft P |
| 111 |
.fi |
| 112 |
.IP \(bu 2 |
| 113 |
. |
| 114 |
show all changes including copies in an existing changeset: |
| 115 |
.sp |
| 116 |
.nf |
| 117 |
.ft C |
| 118 |
hg status \-\-copies \-\-change 9353 |
| 119 |
.ft P |
| 120 |
.fi |
| 121 |
.IP \(bu 2 |
| 122 |
. |
| 123 |
get a NUL separated list of added files, suitable for xargs: |
| 124 |
.sp |
| 125 |
.nf |
| 126 |
.ft C |
| 127 |
hg status \-an0 |
| 128 |
.ft P |
| 129 |
.fi |
| 130 |
.IP \(bu 2 |
| 131 |
. |
| 132 |
show more information about the repository status, abbreviating |
| 133 |
added, removed, modified, deleted, and untracked paths: |
| 134 |
.sp |
| 135 |
.nf |
| 136 |
.ft C |
| 137 |
hg status \-v \-t mardu |
| 138 |
.ft P |
| 139 |
.fi |
| 140 |
.UNINDENT |
| 141 |
.sp |
| 142 |
Returns 0 on success. |
| 143 |
.SH OPTIONS |
| 144 |
.INDENT 0.0 |
| 145 |
.TP |
| 146 |
.B \-A, \-\-all |
| 147 |
. |
| 148 |
show status of all files |
| 149 |
.TP |
| 150 |
.B \-m, \-\-modified |
| 151 |
. |
| 152 |
show only modified files |
| 153 |
.TP |
| 154 |
.B \-a, \-\-added |
| 155 |
. |
| 156 |
show only added files |
| 157 |
.TP |
| 158 |
.B \-r, \-\-removed |
| 159 |
. |
| 160 |
show only removed files |
| 161 |
.TP |
| 162 |
.B \-d, \-\-deleted |
| 163 |
. |
| 164 |
show only missing files |
| 165 |
.TP |
| 166 |
.B \-c, \-\-clean |
| 167 |
. |
| 168 |
show only files without changes |
| 169 |
.TP |
| 170 |
.B \-u, \-\-unknown |
| 171 |
. |
| 172 |
show only unknown (not tracked) files |
| 173 |
.TP |
| 174 |
.B \-i, \-\-ignored |
| 175 |
. |
| 176 |
show only ignored files |
| 177 |
.TP |
| 178 |
.B \-n, \-\-no\-status |
| 179 |
. |
| 180 |
hide status prefix |
| 181 |
.TP |
| 182 |
.BI \-t, \-\-terse \ <VALUE> |
| 183 |
. |
| 184 |
show the terse output (EXPERIMENTAL) (default: nothing) |
| 185 |
.TP |
| 186 |
.B \-C, \-\-copies |
| 187 |
. |
| 188 |
show source of copied files (DEFAULT: ui.statuscopies) |
| 189 |
.TP |
| 190 |
.B \-0, \-\-print0 |
| 191 |
. |
| 192 |
end filenames with NUL, for use with xargs |
| 193 |
.TP |
| 194 |
.BI \-\-rev \ <REV[+]> |
| 195 |
. |
| 196 |
show difference from revision |
| 197 |
.TP |
| 198 |
.BI \-\-change \ <REV> |
| 199 |
. |
| 200 |
list the changed files of a revision |
| 201 |
.TP |
| 202 |
.BI \-I, \-\-include \ <PATTERN[+]> |
| 203 |
. |
| 204 |
include names matching the given patterns |
| 205 |
.TP |
| 206 |
.BI \-X, \-\-exclude \ <PATTERN[+]> |
| 207 |
. |
| 208 |
exclude names matching the given patterns |
| 209 |
.TP |
| 210 |
.B \-S, \-\-subrepos |
| 211 |
. |
| 212 |
recurse into subrepositories |
| 213 |
.TP |
| 214 |
.BI \-T, \-\-template \ <TEMPLATE> |
| 215 |
. |
| 216 |
display with template |
| 217 |
.UNINDENT |
| 218 |
.sp |
| 219 |
[+] marked option can be specified multiple times |
| 220 |
.SH ALIASES |
| 221 |
.sp |
| 222 |
.nf |
| 223 |
.ft C |
| 224 |
st |
| 225 |
.ft P |
| 226 |
.fi |
| 227 |
.\" Generated by docutils manpage writer. |
| 228 |
.\" |
| 229 |
. |