Debian Codegraph @

doc/html/hg-copy.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 copy</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="hg-copy">
12 <span id="hg-copy-1"></span>
13 <h1 class="title">hg copy</h1>
14 <h2 class="subtitle" id="mark-files-as-copied-for-the-next-commit">mark files as copied for the next commit</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 copy [OPTION]... (SOURCE... DEST | --forget 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 having copies of source files. If dest is a
34 directory, copies are put in that directory. If dest is a file,
35 the source must be a single file.</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 copied, use --forget. With that
40 option, all given (positional) arguments are unmarked as copies. The
41 destination file(s) will be left in place (still tracked). Note that
42 <a class="reference external" href="hg-copy.html"><tt class="docutils literal">hg copy <span class="pre">--forget</span></tt></a> behaves the same way as <a class="reference external" href="hg-rename.html"><tt class="docutils literal">hg rename <span class="pre">--forget</span></tt></a>.</p>
43 <p>This command takes effect with the next commit by default.</p>
44 <p>Returns 0 on success, 1 if errors are encountered.</p>
45 </div>
46 <div class="section" id="options">
47 <h1><a class="toc-backref" href="#contents">Options</a></h1>
48 <table class="docutils option-list" frame="void" rules="none">
49 <col class="option" />
50 <col class="description" />
51 <tbody valign="top">
52 <tr><td class="option-group">
53 <kbd><span class="option">--forget</span></kbd></td>
54 <td>unmark a destination file as copied</td></tr>
55 <tr><td class="option-group">
56 <kbd><span class="option">-A</span>, <span class="option">--after</span></kbd></td>
57 <td>record a copy that has already occurred</td></tr>
58 <tr><td class="option-group">
59 <kbd><span class="option">--at-rev <var>&lt;REV&gt;</var></span></kbd></td>
60 <td>(un)mark copies in the given revision (EXPERIMENTAL)</td></tr>
61 <tr><td class="option-group">
62 <kbd><span class="option">-f</span>, <span class="option">--force</span></kbd></td>
63 <td>forcibly copy over an existing managed file</td></tr>
64 <tr><td class="option-group" colspan="2">
65 <kbd><span class="option">-I</span>, <span class="option">--include <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
66 </tr>
67 <tr><td>&nbsp;</td><td>include names matching the given patterns</td></tr>
68 <tr><td class="option-group" colspan="2">
69 <kbd><span class="option">-X</span>, <span class="option">--exclude <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
70 </tr>
71 <tr><td>&nbsp;</td><td>exclude names matching the given patterns</td></tr>
72 <tr><td class="option-group">
73 <kbd><span class="option">-n</span>, <span class="option">--dry-run</span></kbd></td>
74 <td>do not perform actions, just print output</td></tr>
75 </tbody>
76 </table>
77 <p>[+] marked option can be specified multiple times</p>
78 </div>
79 <div class="section" id="aliases">
80 <h1><a class="toc-backref" href="#contents">Aliases</a></h1>
81 <pre class="literal-block">
82 cp
83 </pre>
84 </div>
85 </div>
86 </body>
87 </html>