Debian Codegraph @

doc/man/hg-copy.1

raw
1 .TH HG COPY "" "" ""
2 .SH NAME
3 hg copy \- mark files as copied for the next commit
4 .\" Man page generated from reStructuredText.
5 .
6 .SH SYNOPSIS
7 .sp
8 .nf
9 .ft C
10 hg copy [OPTION]... (SOURCE... DEST | \-\-forget DEST...)
11 .ft P
12 .fi
13 .SH DESCRIPTION
14 .sp
15 Mark dest as having copies of source files. If dest is a
16 directory, copies are put in that directory. If dest is a file,
17 the source must be a single file.
18 .sp
19 By default, this command copies the contents of files as they
20 exist in the working directory. If invoked with \-A/\-\-after, the
21 operation is recorded, but no copying is performed.
22 .sp
23 To undo marking a destination file as copied, use \-\-forget. With that
24 option, all given (positional) arguments are unmarked as copies. The
25 destination file(s) will be left in place (still tracked). Note that
26 \%\fBhg copy \-\-forget\fP\: behaves the same way as \%\fBhg rename \-\-forget\fP\:.
27 .sp
28 This command takes effect with the next commit by default.
29 .sp
30 Returns 0 on success, 1 if errors are encountered.
31 .SH OPTIONS
32 .INDENT 0.0
33 .TP
34 .B \-\-forget
35 .
36 unmark a destination file as copied
37 .TP
38 .B \-A, \-\-after
39 .
40 record a copy that has already occurred
41 .TP
42 .BI \-\-at\-rev \ <REV>
43 .
44 (un)mark copies in the given revision (EXPERIMENTAL)
45 .TP
46 .B \-f, \-\-force
47 .
48 forcibly copy over an existing managed file
49 .TP
50 .BI \-I, \-\-include \ <PATTERN[+]>
51 .
52 include names matching the given patterns
53 .TP
54 .BI \-X, \-\-exclude \ <PATTERN[+]>
55 .
56 exclude names matching the given patterns
57 .TP
58 .B \-n, \-\-dry\-run
59 .
60 do not perform actions, just print output
61 .UNINDENT
62 .sp
63 [+] marked option can be specified multiple times
64 .SH ALIASES
65 .sp
66 .nf
67 .ft C
68 cp
69 .ft P
70 .fi
71 .\" Generated by docutils manpage writer.
72 .\"
73 .