HEX

Warning: set_time_limit() [function.set-time-limit]: Cannot set time limit - prohibited by configuration in /home/u547966/brikov.ru/www/wp-content/plugins/admin-menu-editor/menu-editor.php on line 745
Server: Apache
System: Linux 4.19.0-0.bpo.9-amd64 x86_64 at red40
User: u547966 (5490)
PHP: 5.3.29-mh2
Disabled: syslog, dl, popen, proc_open, proc_nice, proc_get_status, proc_close, proc_terminate, posix_mkfifo, chown, chgrp, accelerator_reset, opcache_reset, accelerator_get_status, opcache_get_status, pcntl_alarm, pcntl_fork, pcntl_waitpid, pcntl_wait, pcntl_wifexited, pcntl_wifstopped, pcntl_wifsignaled, pcntl_wifcontinued, pcntl_wexitstatus, pcntl_wtermsig, pcntl_wstopsig, pcntl_signal, pcntl_signal_dispatch, pcntl_get_last_error, pcntl_strerror, pcntl_sigprocmask, pcntl_sigwaitinfo, pcntl_sigtimedwait, pcntl_exec, pcntl_getpriority, pcntl_setpriority
Upload Files
File: //usr/lib/python2.7/dist-packages/hgext/schemes.pyc
ó
ÛXc@@s÷dZddlmZddlZddlZddlmZddlmZm	Z	m
Z
mZmZm
Z
iZejeƒZdZdefd„ƒYZd	„Zid
d6dd
6dd6dd6dd6Zd„Zeddeƒd„ƒZdS(s'extend schemes with shortcuts to repository swarms

This extension allows you to specify shortcuts for parent URLs with a
lot of repositories to act like a scheme, for example::

  [schemes]
  py = http://code.python.org/hg/

After that you can use it like::

  hg clone py://trunk/

Additionally there is support for some more complex schemas, for
example used by Google Code::

  [schemes]
  gcode = http://{1}.googlecode.com/hg/

The syntax is taken from Mercurial templates, and you have unlimited
number of variables, starting with ``{1}`` and continuing with
``{2}``, ``{3}`` and so on. This variables will receive parts of URL
supplied, split by ``/``. Anything not specified as ``{part}`` will be
just appended to an URL.

For convenience, the extension adds these schemes by default::

  [schemes]
  py = http://hg.python.org/
  bb = https://bitbucket.org/
  bb+ssh = ssh://hg@bitbucket.org/
  gcode = https://{1}.googlecode.com/hg/
  kiln = https://{1}.kilnhg.com/Repo/

You can override a predefined scheme by defining a new scheme with the
same name.
i(tabsolute_importN(t_(tcmdutilterrort
extensionsthgt	templatertutilsships-with-hg-coretShortRepositorycB@s,eZd„Zd„Zd„Zd„ZRS(cC@sg||_||_||_y+ttttjd|jƒƒƒ|_Wnt	k
rbd|_nXdS(Ns	\{(\d+)\}i(
tschemeRturltmaxtmaptinttretfindalltpartst
ValueError(tselfR
R	R((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyt__init__Cs			+
cC@sd|jS(Ns<ShortRepository: %s>(R	(R((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyt__repr__LscC@s+|j|ƒ}tj|ƒj|||ƒS(N(tresolveRt_peerlookuptinstance(RtuiR
tcreate((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyROscC@sÍy|jddƒd}Wn*tk
rFtjtdƒ|ƒ‚nX|jd|jƒ}t|ƒ|jkrˆ|d}|d }nd}td„t|ƒDƒƒ}dj	|j
j|j|ƒƒ|S(Ns://isno '://' in scheme url '%s't/iÿÿÿÿtcs@s+|]!\}}t|dƒ|fVqdS(iN(tstr(t.0titv((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pys	<genexpr>_s(
tsplitt
IndexErrorRtAbortRRtlentdictt	enumeratetjoinRtprocessR
(RR
Rttailtcontext((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyRSs


(t__name__t
__module__RRRR(((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyRBs				cC@s;|r1x(tD]}|j|dƒr
tSq
Wn||ƒS(Nt:(tschemest
startswithtFalse(torigtpathR	((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pythasdriveletterbs

shttp://hg.python.org/tpyshttps://bitbucket.org/tbbsssh://hg@bitbucket.org/sbb+sshshttps://{1}.googlecode.com/hg/tgcodeshttps://{1}.kilnhg.com/Repo/tkilncC@sætjt|jdƒƒƒtjd„ƒ}xžtjƒD]\}}tjdkr²t	|ƒdkr²|j
ƒr²tjjd|ƒr²t
jtdƒ||jƒfƒ‚nt|||ƒtj|<q;WtjtdtƒdS(NR-cS@s|S(N((tx((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyt<lambda>sstntis%s:\s5custom scheme %s:// conflicts with drive letter %s:\
R2(R-tupdateR$tconfigitemsRtenginetitemstostnameR#tisalphaR1texistsRR"RtupperRRRtwrapfunctionRR2(RttR	R
((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pytextsetupqs-tdebugexpandschemetnorepocK@sEtj|ƒ}t|tƒr0|j|ƒ}n|j|dƒdS(s8given a repo path, provide the scheme-expanded path
    s
N(RRt
isinstanceRRtwrite(RR
toptstrepo((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pytexpandscheme}s(t__doc__t
__future__RR>Rtmercurial.i18nRt	mercurialRRRRRRtcmdtabletcommandt
testedwithtobjectRR2R-REtTrueRL(((s1/usr/lib/python2.7/dist-packages/hgext/schemes.pyt<module>)s$.