Debian Codegraph @

doc/html/ext-relink.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>relink</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="relink">
12 <span id="ext-relink"></span>
13 <h1 class="title">relink</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="#commands" id="toc-entry-1">Commands</a><ul>
19 <li><a class="reference internal" href="#repository-maintenance" id="toc-entry-2">Repository maintenance</a></li>
20 </ul>
21 </li>
22 </ul>
23 </div>
24 <p>recreates hardlinks between repository clones</p>
25 <div class="section" id="commands">
26 <h1><a class="toc-backref" href="#contents">Commands</a></h1>
27 <div class="section" id="repository-maintenance">
28 <h2><a class="toc-backref" href="#contents">Repository maintenance</a></h2>
29 <div class="section" id="relink-1">
30 <h3>relink</h3>
31 <p>recreate hardlinks between two repositories:</p>
32 <pre class="literal-block">
33 hg relink [ORIGIN]
34 </pre>
35 <p>When repositories are cloned locally, their data files will be
36 hardlinked so that they only use the space of a single repository.</p>
37 <p>Unfortunately, subsequent pulls into either repository will break
38 hardlinks for any files touched by the new changesets, even if
39 both repositories end up pulling the same changes.</p>
40 <p>Similarly, passing --rev to &quot;hg clone&quot; will fail to use any
41 hardlinks, falling back to a complete copy of the source
42 repository.</p>
43 <p>This command lets you recreate those hardlinks and reclaim that
44 wasted space.</p>
45 <p>This repository will be relinked to share space with ORIGIN, which
46 must be on the same local disk. If ORIGIN is omitted, looks for
47 &quot;default-relink&quot;, then &quot;default&quot;, in [paths].</p>
48 <p>Do not attempt any read operations on this repository while the
49 command is running. (Both repositories will be locked against
50 writes.)</p>
51 </div>
52 </div>
53 </div>
54 </div>
55 </body>
56 </html>