| 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>zeroconf</title> |
| 8 |
<link rel="stylesheet" href="../style.css" type="text/css" /> |
| 9 |
</head> |
| 10 |
<body> |
| 11 |
<div class="document" id="zeroconf"> |
| 12 |
<span id="ext-zeroconf"></span> |
| 13 |
<h1 class="title">zeroconf</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 |
</ul> |
| 20 |
</div> |
| 21 |
<p>discover and advertise repositories on the local network</p> |
| 22 |
<div class="section" id="description"> |
| 23 |
<h1><a class="toc-backref" href="#contents">Description</a></h1> |
| 24 |
<p>The zeroconf extension will advertise <a class="reference external" href="hg-serve.html"><tt class="docutils literal">hg serve</tt></a> instances over |
| 25 |
DNS-SD so that they can be discovered using the <a class="reference external" href="hg-paths.html"><tt class="docutils literal">hg paths</tt></a> command |
| 26 |
without knowing the server's IP address.</p> |
| 27 |
<p>To allow other people to discover your repository using run |
| 28 |
<a class="reference external" href="hg-serve.html"><tt class="docutils literal">hg serve</tt></a> in your repository:</p> |
| 29 |
<pre class="literal-block"> |
| 30 |
$ cd test |
| 31 |
$ hg serve |
| 32 |
</pre> |
| 33 |
<p>You can discover Zeroconf-enabled repositories by running |
| 34 |
<a class="reference external" href="hg-paths.html"><tt class="docutils literal">hg paths</tt></a>:</p> |
| 35 |
<pre class="literal-block"> |
| 36 |
$ hg paths |
| 37 |
zc-test = http://example.com:8000/test |
| 38 |
</pre> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
</body> |
| 42 |
</html> |