Debian Codegraph @

doc/man/hg-remove.1

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