From d577bf3e66a566600059ad61ef3a2c4196528d55 Mon Sep 17 00:00:00 2001 From: David Soria Parra Date: Mon, 5 Jan 2009 20:49:12 +0100 Subject: [PATCH] zeroconf: add extension documentation --- hgext/zeroconf/__init__.py | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/hgext/zeroconf/__init__.py b/hgext/zeroconf/__init__.py index ec4a86d020..49a4d45643 100644 --- a/hgext/zeroconf/__init__.py +++ b/hgext/zeroconf/__init__.py @@ -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