mirror of
https://github.com/facebook/sapling.git
synced 2024-10-08 07:49:11 +03:00
zeroconf: add extension documentation
This commit is contained in:
parent
3d7cb92dd9
commit
d577bf3e66
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user