Debian Codegraph @

doc/html/hg-rename.html

raw
1 <?xml version="1.0" encoding="utf-8"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4 <head>
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6 <meta name="generator" content="Docutils 0.21.2: https://docutils.sourceforge.io/" />
7 <title>hg rename</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="hg-rename">
12 <span id="hg-rename-1"></span>
13 <h1 class="title">hg rename</h1>
14 <h2 class="subtitle" id="rename-files-equivalent-of-copy-remove">rename files; equivalent of copy + remove</h2>
15
16 <div class="contents htmlonly topic" id="contents">
17 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
18 <ul class="simple">
19 <li><a class="reference internal" href="#synopsis" id="toc-entry-1">Synopsis</a></li>
20 <li><a class="reference internal" href="#description" id="toc-entry-2">Description</a></li>
21 <li><a class="reference internal" href="#options" id="toc-entry-3">Options</a></li>
22 <li><a class="reference internal" href="#aliases" id="toc-entry-4">Aliases</a></li>
23 </ul>
24 </div>
25 <div class="section" id="synopsis">
26 <h1><a class="toc-backref" href="#contents">Synopsis</a></h1>
27 <pre class="literal-block">
28 hg rename [OPTION]... SOURCE... DEST
29 </pre>
30 </div>
31 <div class="section" id="description">
32 <h1><a class="toc-backref" href="#contents">Description</a></h1>
33 <p>Mark dest as copies of sources; mark sources for deletion. If dest
34 is a directory, copies are put in that directory. If dest is a
35 file, there can only be one source.</p>
36 <p>By default, this command copies the contents of files as they
37 exist in the working directory. If invoked with -A/--after, the
38 operation is recorded, but no copying is performed.</p>
39 <p>To undo marking a destination file as renamed, use --forget. With that
40 option, all given (positional) arguments are unmarked as renames. The
41 destination file(s) will be left in place (still tracked). The source
42 file(s) will not be restored. Note that <a class="reference external" href="hg-rename.html"><tt class="docutils literal">hg rename <span class="pre">--forget</span></tt></a> behaves
43 the same way as <a class="reference external" href="hg-copy.html"><tt class="docutils literal">hg copy <span class="pre">--forget</span></tt></a>.</p>
44 <p>This command takes effect with the next commit by default.</p>
45 <p>Returns 0 on success, 1 if errors are encountered.</p>
46 </div>
47 <div class="section" id="options">
48 <h1><a class="toc-backref" href="#contents">Options</a></h1>
49 <table class="docutils option-list" frame="void" rules="none">
50 <col class="option" />
51 <col class="description" />
52 <tbody valign="top">
53 <tr><td class="option-group">
54 <kbd><span class="option">--forget</span></kbd></td>
55 <td>unmark a destination file as renamed</td></tr>
56 <tr><td class="option-group">
57 <kbd><span class="option">-A</span>, <span class="option">--after</span></kbd></td>
58 <td>record a rename that has already occurred</td></tr>
59 <tr><td class="option-group">
60 <kbd><span class="option">--at-rev <var>&lt;REV&gt;</var></span></kbd></td>
61 <td>(un)mark renames in the given revision (EXPERIMENTAL)</td></tr>
62 <tr><td class="option-group">
63 <kbd><span class="option">-f</span>, <span class="option">--force</span></kbd></td>
64 <td>forcibly move over an existing managed file</td></tr>
65 <tr><td class="option-group" colspan="2">
66 <kbd><span class="option">-I</span>, <span class="option">--include <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
67 </tr>
68 <tr><td>&nbsp;</td><td>include names matching the given patterns</td></tr>
69 <tr><td class="option-group" colspan="2">
70 <kbd><span class="option">-X</span>, <span class="option">--exclude <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
71 </tr>
72 <tr><td>&nbsp;</td><td>exclude names matching the given patterns</td></tr>
73 <tr><td class="option-group">
74 <kbd><span class="option">-n</span>, <span class="option">--dry-run</span></kbd></td>
75 <td>do not perform actions, just print output</td></tr>
76 </tbody>
77 </table>
78 <p>[+] marked option can be specified multiple times</p>
79 </div>
80 <div class="section" id="aliases">
81 <h1><a class="toc-backref" href="#contents">Aliases</a></h1>
82 <pre class="literal-block">
83 move, mv
84 </pre>
85 </div>
86 </div>
87 </body>
88 </html>