| 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 paths</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="hg-paths"> |
| 12 |
<span id="hg-paths-1"></span> |
| 13 |
<h1 class="title">hg paths</h1> |
| 14 |
<h2 class="subtitle" id="show-aliases-for-remote-repositories">show aliases for remote repositories</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 |
</ul> |
| 23 |
</div> |
| 24 |
<div class="section" id="synopsis"> |
| 25 |
<h1><a class="toc-backref" href="#contents">Synopsis</a></h1> |
| 26 |
<pre class="literal-block"> |
| 27 |
hg paths [NAME] |
| 28 |
</pre> |
| 29 |
</div> |
| 30 |
<div class="section" id="description"> |
| 31 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 32 |
<p>Show definition of symbolic path name NAME. If no name is given, |
| 33 |
show definition of all available names.</p> |
| 34 |
<p>Option -q/--quiet suppresses all output when searching for NAME |
| 35 |
and shows only the path names when listing all definitions.</p> |
| 36 |
<p>Path names are defined in the [paths] section of your |
| 37 |
configuration file and in <tt class="docutils literal">/etc/mercurial/hgrc</tt>. If run inside a |
| 38 |
repository, <tt class="docutils literal">.hg/hgrc</tt> is used, too.</p> |
| 39 |
<p>The path names <tt class="docutils literal">default</tt> and <tt class="docutils literal"><span class="pre">default-push</span></tt> have a special |
| 40 |
meaning. When performing a push or pull operation, they are used |
| 41 |
as fallbacks if no location is specified on the command-line. |
| 42 |
When <tt class="docutils literal"><span class="pre">default-push</span></tt> is set, it will be used for push and |
| 43 |
<tt class="docutils literal">default</tt> will be used for pull; otherwise <tt class="docutils literal">default</tt> is used |
| 44 |
as the fallback for both. When cloning a repository, the clone |
| 45 |
source is written as <tt class="docutils literal">default</tt> in <tt class="docutils literal">.hg/hgrc</tt>.</p> |
| 46 |
<div class="admonition note"> |
| 47 |
<p class="first admonition-title">Note</p> |
| 48 |
<p class="last"><tt class="docutils literal">default</tt> and <tt class="docutils literal"><span class="pre">default-push</span></tt> apply to all inbound (e.g. |
| 49 |
<a class="reference external" href="hg-incoming.html"><tt class="docutils literal">hg incoming</tt></a>) and outbound (e.g. <a class="reference external" href="hg-outgoing.html"><tt class="docutils literal">hg outgoing</tt></a>, <a class="reference external" href="hg-email.html"><tt class="docutils literal">hg email</tt></a> |
| 50 |
and <a class="reference external" href="hg-bundle.html"><tt class="docutils literal">hg bundle</tt></a>) operations.</p> |
| 51 |
</div> |
| 52 |
<p>See <a class="reference external" href="topic-urls.html"><tt class="docutils literal">hg help urls</tt></a> for more information.</p> |
| 53 |
<div class="verbose docutils container"> |
| 54 |
<p>Template:</p> |
| 55 |
<p>The following keywords are supported. See also <a class="reference external" href="hg.1.html#templates"><tt class="docutils literal">hg help templates</tt></a>.</p> |
| 56 |
<table class="docutils field-list" frame="void" rules="none"> |
| 57 |
<col class="field-name" /> |
| 58 |
<col class="field-body" /> |
| 59 |
<tbody valign="top"> |
| 60 |
<tr class="field"><th class="field-name">name:</th><td class="field-body">String. Symbolic name of the path alias.</td> |
| 61 |
</tr> |
| 62 |
<tr class="field"><th class="field-name">pushurl:</th><td class="field-body">String. URL for push operations.</td> |
| 63 |
</tr> |
| 64 |
<tr class="field"><th class="field-name">url:</th><td class="field-body">String. URL or directory path for the other operations.</td> |
| 65 |
</tr> |
| 66 |
</tbody> |
| 67 |
</table> |
| 68 |
</div> |
| 69 |
<p>Returns 0 on success.</p> |
| 70 |
</div> |
| 71 |
<div class="section" id="options"> |
| 72 |
<h1><a class="toc-backref" href="#contents">Options</a></h1> |
| 73 |
<table class="docutils option-list" frame="void" rules="none"> |
| 74 |
<col class="option" /> |
| 75 |
<col class="description" /> |
| 76 |
<tbody valign="top"> |
| 77 |
<tr><td class="option-group" colspan="2"> |
| 78 |
<kbd><span class="option">-T</span>, <span class="option">--template <var><TEMPLATE></var></span></kbd></td> |
| 79 |
</tr> |
| 80 |
<tr><td> </td><td>display with template</td></tr> |
| 81 |
</tbody> |
| 82 |
</table> |
| 83 |
</div> |
| 84 |
</div> |
| 85 |
</body> |
| 86 |
</html> |