��Pc@s6ddlmZddlZdefd��YZdS(i�(t_NtpeerrepositorycBs>eZd�Zd�Zd�Zd�Zd�Zd�ZRS(cCsX|j�}||krtS|d}x+|D]#}|j|�r-|t|�Sq-WtS(s�tell whether repo supports named capability.
return False if not supported.
if boolean capability, return True.
if string capability, return string.t=(t
_capabilitiestTruet
startswithtlentFalse(tselftnametcapstname_eqtcap((s2/sys/lib/python2.7/site-packages/mercurial/peer.pytcapables
cCs5|j|�s1tjtd�||f��ndS(s9raise an exception if the given capability is not presents?cannot %s; remote repository does not support the %r capabilityN(R
terrortCapabilityErrorR(RR tpurpose((s2/sys/lib/python2.7/site-packages/mercurial/peer.pyt
requirecaps cCsdS(s#return peer as a localrepo, or NoneN(tNone(R((s2/sys/lib/python2.7/site-packages/mercurial/peer.pytlocal#scCs|S(N((R((s2/sys/lib/python2.7/site-packages/mercurial/peer.pytpeer'scCstS(N(R(R((s2/sys/lib/python2.7/site-packages/mercurial/peer.pytcanpush*scCsdS(N((R((s2/sys/lib/python2.7/site-packages/mercurial/peer.pytclose-s(t__name__t
__module__R
RRRRR(((s2/sys/lib/python2.7/site-packages/mercurial/peer.pyRs (ti18nRRtobjectR(((s2/sys/lib/python2.7/site-packages/mercurial/peer.pyt<module> s
|