File: hg-remove.1

package info (click to toggle)
mercurial 7.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,080 kB
  • sloc: python: 208,589; ansic: 56,460; tcl: 3,715; sh: 1,839; lisp: 1,483; cpp: 864; makefile: 769; javascript: 649; xml: 36
file content (141 lines) | stat: -rw-r--r-- 2,062 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
.TH HG REMOVE  "" "" ""
.SH NAME
hg remove \- remove the specified files on the next commit
.\" Man page generated from reStructuredText.
.
.SH SYNOPSIS
.sp
.nf
.ft C
hg remove [OPTION]... FILE...
.ft P
.fi
.SH DESCRIPTION
.sp
Schedule the indicated files for removal from the current branch.
.sp
This command schedules the files to be removed at the next commit.
To undo a remove before that, see \%\fBhg revert\fP\:. To undo added
files, see \%\fBhg forget\fP\:.
.sp
\-A/\-\-after can be used to remove only files that have already
been deleted, \-f/\-\-force can be used to force deletion, and \-Af
can be used to remove files from the next revision without
deleting them from the working directory.
.sp
The following table details the behavior of remove for different
file states (columns) and option combinations (rows). The file
states are Added [A], Clean [C], Modified [M] and Missing [!]
(as reported by \%\fBhg status\fP\:). The actions are Warn, Remove
(from branch) and Delete (from disk):
.TS
center;
|l|l|l|l|l|.
_
T{
opt/state
T}	T{
A
T}	T{
C
T}	T{
M
T}	T{
!
T}
_
T{
none
T}	T{
W
T}	T{
RD
T}	T{
W
T}	T{
R
T}
_
T{
\-f
T}	T{
R
T}	T{
RD
T}	T{
RD
T}	T{
R
T}
_
T{
\-A
T}	T{
W
T}	T{
W
T}	T{
W
T}	T{
R
T}
_
T{
\-Af
T}	T{
R
T}	T{
R
T}	T{
R
T}	T{
R
T}
_
.TE
.IP Note
.
\%\fBhg remove\fP\: never deletes files in Added [A] state from the
working directory, not even if \fB\-\-force\fP is specified.
.RE
.sp
Returns 0 on success, 1 if any warnings encountered.
.SH OPTIONS
.INDENT 0.0
.TP
.B \-A,  \-\-after
.
record delete for missing files
.TP
.B \-f,  \-\-force
.
forget added files, delete modified files
.TP
.B \-S,  \-\-subrepos
.
recurse into subrepositories
.TP
.BI \-I,  \-\-include \ <PATTERN[+]>
.
include names matching the given patterns
.TP
.BI \-X,  \-\-exclude \ <PATTERN[+]>
.
exclude names matching the given patterns
.TP
.B \-n,  \-\-dry\-run
.
do not perform actions, just print output
.UNINDENT
.sp
[+] marked option can be specified multiple times
.SH ALIASES
.sp
.nf
.ft C
rm
.ft P
.fi
.\" Generated by docutils manpage writer.
.\" 
.