changeset 7606:e86ca711544d

zeroconf: add extension documentation
author David Soria Parra <dsp@php.net>
date Mon, 05 Jan 2009 20:49:12 +0100
parents 3e592067515d
children 3cf85220a9f9
files hgext/zeroconf/__init__.py
diffstat 1 files changed, 23 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/zeroconf/__init__.py	Mon Jan 05 12:48:20 2009 -0500
+++ b/hgext/zeroconf/__init__.py	Mon Jan 05 20:49:12 2009 +0100
@@ -6,6 +6,29 @@
 # the GNU General Public License (version 2), incorporated herein by
 # reference.
 
+'''zeroconf support for mercurial repositories
+
+Zeroconf enabled repositories will be announced in a network without the need
+to configure a server or a service. They can be discovered without knowing
+their actual IP address.
+
+To use the zeroconf extension add the following entry to your hgrc file:
+
+[extensions]
+hgext.zeroconf =
+
+To allow other people to discover your repository using run "hg serve" in your
+repository.
+
+ $ cd test
+ $ hg serve
+
+You can discover zeroconf enabled repositories by running "hg paths".
+
+ $ hg paths
+ zc-test = http://example.com:8000/test
+'''
+
 import Zeroconf, socket, time, os
 from mercurial import ui
 from mercurial import extensions