-=[ Mr. Bumblebee ]=-
_Indonesia_
l\c @ sZ d Z d d l Z d d l Z d d l Z d d l Z d d l m Z m Z m Z m Z d d l m
Z
d d l m Z
d Z d a d a d Z d Z d Z d
e f d YZ d Z d e d
Z e d Z d Z d Z e
j e d e e
j e j d e e
j e j d e e
j e d e e
j e
d e d S( s discover and advertise repositories on the local network
The zeroconf extension will advertise :hg:`serve` instances over
DNS-SD so that they can be discovered using the :hg:`paths` command
without knowing the server's address.
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
iN( t uit hgt encodingt dispatch( t
extensions( t servert internalc C s y= t j t j t j } | j d | j d } | SWn t j k
rS n XyA t j t j d d } | j d r d | k r | SWn# t j t j
f k
r d } n Xy= t j t j t j } | j d | j d } | SWn t j k
rn X| S(
Ns 1.0.0.1i i s 127.t :s 127.0.0.1i ( s 1.0.0.1i ( s 1.0.0.1i ( t sockett AF_INETt
SOCK_DGRAMt connectt getsocknamet errort
gethostbyaddrt gethostnamet
startswitht gaierrort herror( t st ipt dumbip( ( s; /usr/lib/python2.7/dist-packages/hgext/zeroconf/__init__.pyt getip) s*
c C s, t sC t } | j d r"