Debian Codegraph @

doc/html/ext-fetch.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>fetch</title>
8 <link rel="stylesheet" href="../style.css" type="text/css" />
9 </head>
10 <body>
11 <div class="document" id="fetch">
12 <span id="ext-fetch"></span>
13 <h1 class="title">fetch</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="#remote-repository-management" id="toc-entry-2">Remote repository management</a></li>
20 </ul>
21 </li>
22 </ul>
23 </div>
24 <p>pull, update and merge in one command (DEPRECATED)</p>
25 <div class="section" id="commands">
26 <h1><a class="toc-backref" href="#contents">Commands</a></h1>
27 <div class="section" id="remote-repository-management">
28 <h2><a class="toc-backref" href="#contents">Remote repository management</a></h2>
29 <div class="section" id="fetch-1">
30 <h3>fetch</h3>
31 <p>pull changes from a remote repository, merge new changes if needed.:</p>
32 <pre class="literal-block">
33 hg fetch [SOURCE]
34 </pre>
35 <p>This finds all changes from the repository at the specified path
36 or URL and adds them to the local repository.</p>
37 <p>If the pulled changes add a new branch head, the head is
38 automatically merged, and the result of the merge is committed.
39 Otherwise, the working directory is updated to include the new
40 changes.</p>
41 <p>When a merge is needed, the working directory is first updated to
42 the newly pulled changes. Local changes are then merged into the
43 pulled changes. To switch the merge order, use --switch-parent.</p>
44 <p>See <a class="reference external" href="topic-dates.html"><tt class="docutils literal">hg help dates</tt></a> for a list of formats valid for -d/--date.</p>
45 <p>Returns 0 on success.</p>
46 <p>Options:</p>
47 <table class="docutils option-list" frame="void" rules="none">
48 <col class="option" />
49 <col class="description" />
50 <tbody valign="top">
51 <tr><td class="option-group" colspan="2">
52 <kbd><span class="option">-r</span>, <span class="option">--rev <var>&lt;REV[+]&gt;</var></span></kbd></td>
53 </tr>
54 <tr><td>&nbsp;</td><td>a specific revision you would like to pull</td></tr>
55 <tr><td class="option-group">
56 <kbd><span class="option">--edit</span></kbd></td>
57 <td>invoke editor on commit messages</td></tr>
58 <tr><td class="option-group">
59 <kbd><span class="option">--force-editor</span></kbd></td>
60 <td>edit commit message (DEPRECATED)</td></tr>
61 <tr><td class="option-group" colspan="2">
62 <kbd><span class="option">--switch-parent</span></kbd></td>
63 </tr>
64 <tr><td>&nbsp;</td><td>switch parents when merging</td></tr>
65 <tr><td class="option-group" colspan="2">
66 <kbd><span class="option">-m</span>, <span class="option">--message <var>&lt;TEXT&gt;</var></span></kbd></td>
67 </tr>
68 <tr><td>&nbsp;</td><td>use text as commit message</td></tr>
69 <tr><td class="option-group" colspan="2">
70 <kbd><span class="option">-l</span>, <span class="option">--logfile <var>&lt;FILE&gt;</var></span></kbd></td>
71 </tr>
72 <tr><td>&nbsp;</td><td>read commit message from file</td></tr>
73 <tr><td class="option-group" colspan="2">
74 <kbd><span class="option">-d</span>, <span class="option">--date <var>&lt;DATE&gt;</var></span></kbd></td>
75 </tr>
76 <tr><td>&nbsp;</td><td>record the specified date as commit date</td></tr>
77 <tr><td class="option-group" colspan="2">
78 <kbd><span class="option">-u</span>, <span class="option">--user <var>&lt;USER&gt;</var></span></kbd></td>
79 </tr>
80 <tr><td>&nbsp;</td><td>record the specified user as committer</td></tr>
81 <tr><td class="option-group" colspan="2">
82 <kbd><span class="option">-e</span>, <span class="option">--ssh <var>&lt;CMD&gt;</var></span></kbd></td>
83 </tr>
84 <tr><td>&nbsp;</td><td>specify ssh command to use</td></tr>
85 <tr><td class="option-group" colspan="2">
86 <kbd><span class="option">--remotecmd <var>&lt;CMD&gt;</var></span></kbd></td>
87 </tr>
88 <tr><td>&nbsp;</td><td>specify hg command to run on the remote side</td></tr>
89 <tr><td class="option-group">
90 <kbd><span class="option">--insecure</span></kbd></td>
91 <td>do not verify server certificate (ignoring web.cacerts config)</td></tr>
92 </tbody>
93 </table>
94 <p>[+] marked option can be specified multiple times</p>
95 </div>
96 </div>
97 </div>
98 </div>
99 </body>
100 </html>