Debian Codegraph @

doc/html/ext-strip.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>strip</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="strip">
12 <span id="ext-strip"></span>
13 <h1 class="title">strip</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="#repository-maintenance" id="toc-entry-3">Repository maintenance</a></li>
21 </ul>
22 </li>
23 </ul>
24 </div>
25 <p>strip changesets and their descendants from history (DEPRECATED)</p>
26 <div class="section" id="description">
27 <h1><a class="toc-backref" href="#contents">Description</a></h1>
28 <p>The functionality of this extension has been included in core Mercurial
29 since version 5.7. Please use <a class="reference external" href="hg-debugstrip.html"><tt class="docutils literal">hg debugstrip ...</tt></a> instead.</p>
30 <p>This extension allows you to strip changesets and all their descendants from the
31 repository. See the command help for details.</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="repository-maintenance">
36 <h2><a class="toc-backref" href="#contents">Repository maintenance</a></h2>
37 <div class="section" id="strip-1">
38 <h3>strip</h3>
39 <pre class="literal-block">
40 hg strip [-k] [-f] [-B bookmark] [-r] REV...
41 </pre>
42 <p>Options:</p>
43 <table class="docutils option-list" frame="void" rules="none">
44 <col class="option" />
45 <col class="description" />
46 <tbody valign="top">
47 <tr><td class="option-group" colspan="2">
48 <kbd><span class="option">-r</span>, <span class="option">--rev <var>&lt;REV[+]&gt;</var></span></kbd></td>
49 </tr>
50 <tr><td>&nbsp;</td><td>strip specified revision (optional, can specify revisions without this option)</td></tr>
51 <tr><td class="option-group">
52 <kbd><span class="option">-f</span>, <span class="option">--force</span></kbd></td>
53 <td>force removal of changesets, discard uncommitted changes (no backup)</td></tr>
54 <tr><td class="option-group">
55 <kbd><span class="option">--no-backup</span></kbd></td>
56 <td>do not save backup bundle</td></tr>
57 <tr><td class="option-group">
58 <kbd><span class="option">--nobackup</span></kbd></td>
59 <td>do not save backup bundle (DEPRECATED)</td></tr>
60 <tr><td class="option-group">
61 <kbd><span class="option">-n</span></kbd></td>
62 <td>ignored (DEPRECATED)</td></tr>
63 <tr><td class="option-group">
64 <kbd><span class="option">-k</span>, <span class="option">--keep</span></kbd></td>
65 <td>do not modify working directory during strip</td></tr>
66 <tr><td class="option-group" colspan="2">
67 <kbd><span class="option">-B</span>, <span class="option">--bookmark <var>&lt;BOOKMARK[+]&gt;</var></span></kbd></td>
68 </tr>
69 <tr><td>&nbsp;</td><td>remove revs only reachable from given bookmark</td></tr>
70 <tr><td class="option-group">
71 <kbd><span class="option">--soft</span></kbd></td>
72 <td>simply drop changesets from visible history (EXPERIMENTAL)</td></tr>
73 <tr><td class="option-group" colspan="2">
74 <kbd><span class="option">--permit-empty-revset</span></kbd></td>
75 </tr>
76 <tr><td>&nbsp;</td><td>return success even if no revision was stripped</td></tr>
77 </tbody>
78 </table>
79 <p>[+] marked option can be specified multiple times</p>
80 </div>
81 </div>
82 </div>
83 </div>
84 </body>
85 </html>