Mercurial > hg
comparison hgext/zeroconf/__init__.py @ 7606:e86ca711544d
zeroconf: add extension documentation
author | David Soria Parra <dsp@php.net> |
---|---|
date | Mon, 05 Jan 2009 20:49:12 +0100 |
parents | 66d0fc108044 |
children | e3425726b80d |
comparison
equal
deleted
inserted
replaced
7605:3e592067515d | 7606:e86ca711544d |
---|---|
3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> | 3 # Copyright 2005-2007 Matt Mackall <mpm@selenic.com> |
4 # | 4 # |
5 # This software may be used and distributed according to the terms of | 5 # This software may be used and distributed according to the terms of |
6 # the GNU General Public License (version 2), incorporated herein by | 6 # the GNU General Public License (version 2), incorporated herein by |
7 # reference. | 7 # reference. |
8 | |
9 '''zeroconf support for mercurial repositories | |
10 | |
11 Zeroconf enabled repositories will be announced in a network without the need | |
12 to configure a server or a service. They can be discovered without knowing | |
13 their actual IP address. | |
14 | |
15 To use the zeroconf extension add the following entry to your hgrc file: | |
16 | |
17 [extensions] | |
18 hgext.zeroconf = | |
19 | |
20 To allow other people to discover your repository using run "hg serve" in your | |
21 repository. | |
22 | |
23 $ cd test | |
24 $ hg serve | |
25 | |
26 You can discover zeroconf enabled repositories by running "hg paths". | |
27 | |
28 $ hg paths | |
29 zc-test = http://example.com:8000/test | |
30 ''' | |
8 | 31 |
9 import Zeroconf, socket, time, os | 32 import Zeroconf, socket, time, os |
10 from mercurial import ui | 33 from mercurial import ui |
11 from mercurial import extensions | 34 from mercurial import extensions |
12 from mercurial.hgweb import hgweb_mod | 35 from mercurial.hgweb import hgweb_mod |