Debian Codegraph @

doc/man/hg-rename.1

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