Debian Codegraph @

doc/html/ext-uncommit.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>uncommit</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="uncommit">
12 <span id="ext-uncommit"></span>
13 <h1 class="title">uncommit</h1>
14
15 <div class="contents htmlonly topic" id="contents">
16 <p class="topic-title"><a class="reference internal" href="#top">Contents</a></p>
17 <ul class="simple">
18 <li><a class="reference internal" href="#description" id="toc-entry-1">Description</a></li>
19 <li><a class="reference internal" href="#commands" id="toc-entry-2">Commands</a><ul>
20 <li><a class="reference internal" href="#change-manipulation" id="toc-entry-3">Change manipulation</a></li>
21 </ul>
22 </li>
23 </ul>
24 </div>
25 <p>uncommit part or all of a local changeset (EXPERIMENTAL)</p>
26 <div class="section" id="description">
27 <h1><a class="toc-backref" href="#contents">Description</a></h1>
28 <p>This command undoes the effect of a local commit, returning the affected
29 files to their uncommitted state. This means that files modified, added or
30 removed in the changeset will be left unchanged, and so will remain modified,
31 added and removed in the working directory.</p>
32 </div>
33 <div class="section" id="commands">
34 <h1><a class="toc-backref" href="#contents">Commands</a></h1>
35 <div class="section" id="change-manipulation">
36 <h2><a class="toc-backref" href="#contents">Change manipulation</a></h2>
37 <div class="section" id="unamend">
38 <h3>unamend</h3>
39 <p>undo the most recent amend operation on a current changeset:</p>
40 <pre class="literal-block">
41 hg unamend
42 </pre>
43 <p>This command will roll back to the previous version of a changeset,
44 leaving working directory in state in which it was before running
45 <cite>hg amend</cite> (e.g. files modified as part of an amend will be
46 marked as modified <cite>hg status</cite>)</p>
47 </div>
48 <div class="section" id="uncommit-1">
49 <h3>uncommit</h3>
50 <p>uncommit part or all of a local changeset:</p>
51 <pre class="literal-block">
52 hg uncommit [OPTION]... [FILE]...
53 </pre>
54 <p>This command undoes the effect of a local commit, returning the affected
55 files to their uncommitted state. This means that files modified or
56 deleted in the changeset will be left unchanged, and so will remain
57 modified in the working directory.</p>
58 <p>If no files are specified, the commit will be pruned, unless --keep is
59 given.</p>
60 <p>Options:</p>
61 <table class="docutils option-list" frame="void" rules="none">
62 <col class="option" />
63 <col class="description" />
64 <tbody valign="top">
65 <tr><td class="option-group">
66 <kbd><span class="option">--keep</span></kbd></td>
67 <td>allow an empty commit after uncommitting</td></tr>
68 <tr><td class="option-group" colspan="2">
69 <kbd><span class="option">--allow-dirty-working-copy</span></kbd></td>
70 </tr>
71 <tr><td>&nbsp;</td><td>allow uncommit with outstanding changes</td></tr>
72 <tr><td class="option-group" colspan="2">
73 <kbd><span class="option">-n</span>, <span class="option">--note <var>&lt;TEXT&gt;</var></span></kbd></td>
74 </tr>
75 <tr><td>&nbsp;</td><td>store a note on uncommit</td></tr>
76 <tr><td class="option-group" colspan="2">
77 <kbd><span class="option">-I</span>, <span class="option">--include <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
78 </tr>
79 <tr><td>&nbsp;</td><td>include names matching the given patterns</td></tr>
80 <tr><td class="option-group" colspan="2">
81 <kbd><span class="option">-X</span>, <span class="option">--exclude <var>&lt;PATTERN[+]&gt;</var></span></kbd></td>
82 </tr>
83 <tr><td>&nbsp;</td><td>exclude names matching the given patterns</td></tr>
84 <tr><td class="option-group" colspan="2">
85 <kbd><span class="option">-m</span>, <span class="option">--message <var>&lt;TEXT&gt;</var></span></kbd></td>
86 </tr>
87 <tr><td>&nbsp;</td><td>use text as commit message</td></tr>
88 <tr><td class="option-group" colspan="2">
89 <kbd><span class="option">-l</span>, <span class="option">--logfile <var>&lt;FILE&gt;</var></span></kbd></td>
90 </tr>
91 <tr><td>&nbsp;</td><td>read commit message from file</td></tr>
92 <tr><td class="option-group" colspan="2">
93 <kbd><span class="option">-d</span>, <span class="option">--date <var>&lt;DATE&gt;</var></span></kbd></td>
94 </tr>
95 <tr><td>&nbsp;</td><td>record the specified date as commit date</td></tr>
96 <tr><td class="option-group" colspan="2">
97 <kbd><span class="option">-u</span>, <span class="option">--user <var>&lt;USER&gt;</var></span></kbd></td>
98 </tr>
99 <tr><td>&nbsp;</td><td>record the specified user as committer</td></tr>
100 <tr><td class="option-group" colspan="2">
101 <kbd><span class="option">-D</span>, <span class="option">--currentdate</span></kbd></td>
102 </tr>
103 <tr><td>&nbsp;</td><td>record the current date as commit date</td></tr>
104 <tr><td class="option-group" colspan="2">
105 <kbd><span class="option">-U</span>, <span class="option">--currentuser</span></kbd></td>
106 </tr>
107 <tr><td>&nbsp;</td><td>record the current user as committer</td></tr>
108 </tbody>
109 </table>
110 <p>[+] marked option can be specified multiple times</p>
111 </div>
112 </div>
113 </div>
114 </div>
115 </body>
116 </html>