-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/mercurial/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/mercurial/hg.pyc

ó
Ì\,Tc@s™ddlmZddlmZddlmZmZddlZddlZddl	Z	ddl
Z
ddlZddlZddl
Z
ddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZddlZd„Zd„Zdd„Z ied6e	d	6ed
6e
d6e
d6ed
6ed6Z!d„Z"d„Z#d„Z$gZ%e&d„Z'de&d„Z(e&d„Z)d„Z*de+d„Z,d„Z-de&de+e&dd„Z.d„Z/d„Z0d„Z1e1Z2e+d„Z3de+d„Ze&d„Z4d „Z5d!„Z6d"„Z7d#„Z8d$„Zd%„Z9dS(&iÿÿÿÿ(t_(trelease(thextnullidNcCs4tjtj|ƒƒ}tjj|ƒr0tp3tS(N(tutilt
expandpathturllocalpathtostpathtisfilet
bundlerepot	localrepo(R((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt_localscs3|jƒ}|\}}|rF|rFˆp/dˆr?ˆdpBdfSˆrXtˆƒp[g‰|jdƒs¦|r‹tjtdƒƒ‚nˆj|ƒˆˆdfS|jƒ‰‡‡‡fd†}x6|D].}||ƒsÎt	j
tdƒ|ƒ‚qÎqÎW|r%||ƒs%ˆj|ƒq%nˆˆdfS(Nit	branchmaps"remote branch lookup not supportedcsu|dkr<ˆs*tjtdƒƒ‚nˆjjƒ}n|ˆkrmˆjd„tˆ|ƒDƒƒtStSdS(Nt.sdirstate branch not accessiblecss|]}tj|ƒVqdS(N(tnodeR(t.0tr((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pys	<genexpr>*s(	RtAbortRtdirstatetbranchtextendtreversedtTruetFalse(R(R
tlrepotrevs(s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytprimary$s!sunknown branch '%s'(tpeertNonetlisttcapableRRRtappendR
terrortRepoLookupError(RtothertbranchesRRt
hashbranchRR((R
RRs0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt
addbranchrevss& 

 cCsOtj|ƒ}d}|jr3|j}d|_nt|ƒ||pHgffS(s5parse url#branch, returning (url, (branch, branches))N(RturlRtfragmenttstr(RR$tuR((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytparseurl7s		tbundletuniontfilethttpthttpstsshsstatic-httpcCs^tj|ƒ}|jpd}tj|ƒp4td}y||ƒSWntk
rY|SXdS(NR.(RR'tschemetschemestgett	TypeError(RR*R2tthing((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt_peerlookupKs
cCsHt|tƒr>yt|ƒj|ƒSWq>tk
r:tSXn|jƒS(s7return true if repo (or path pointing to repo) is local(t
isinstanceR)R7tislocaltAttributeErrorRtlocal(trepo((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyR9Ts
cCsQtj|dtdtƒ}|jƒr=tj|jƒdƒStj||ƒSdS(s0open path with open if local, url.open if remotet
parsequeryt
parsefragmenttrbN(RR'RR9t	posixfilet	localpathtopen(tuiRtpathurl((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytopenpath]scCs¦t|ƒj|||ƒ}t|d|ƒ}xEtj|ƒD]4\}}t|ddƒ}|r=|||ƒq=q=W|jƒs¢xtD]}|||ƒqˆWn|S(s1return a repository object for the specified pathRCt	reposetupN(R7tinstancetgetattrt
extensionsRR;twirepeersetupfuncs(RCRtcreatetobjtnametmodulethooktf((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt_peerorrepohs
tcCsYt|||ƒ}|jƒ}|sLtjtdƒ|pB|jƒƒ‚n|jdƒS(s1return a repository object for the specified pathsrepository '%s' is not localtvisible(RQR;RRRR'tfiltered(RCRRKRR<((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt
repositoryuscCs%t||ƒ}t|||ƒjƒS(s/return a repository peer for the specified path(tremoteuiRQR(tuiorrepotoptsRRKtrui((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyR~scCs8tj|ƒj}|sdStjjtjj|ƒƒS(s3return default destination of clone if none is given

    >>> defaultdest('foo')
    'foo'
    >>> defaultdest('/foo/bar')
    'bar'
    >>> defaultdest('/')
    ''
    >>> defaultdest('')
    ''
    >>> defaultdest('http://example.org/')
    ''
    >>> defaultdest('http://example.org/foo/')
    'foo'
    RR(RR'RRtbasenametnormpath(tsourceR((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytdefaultdestƒscCsÖt|ƒs$tjtdƒƒ‚n|s9t|ƒ}n|j|ƒ}t|tƒr¥|j|ƒ}t|ƒ\}}t	||ƒ}t
|||dƒ\}}n"|jƒ}|j
ƒ}}d}|j}	tj|dtƒ}
tjtjj|
jdƒdtƒ}|jƒr0tjtdƒƒ‚n|
jƒsI|
jƒn|jƒd}y|jjdƒ}Wn+tk
rœ}
|
jtjkr‚qnX|d7}|jd|ƒ|jd|	ƒt	||
jƒ}|j j!d	d
ƒ}|r7|jddd
tƒ}|jdƒ|jd|ƒ|j"ƒn|rÒ|j j#tdƒƒ|tk	rh|}nxW|d
dfD]F}|dkrqxny|j$|ƒ}PWqxt%j&k
r½qxqxXqxWt'||ƒndS(screate a shared repositorys!can only share local repositoriestrealpaths.hgsdestination already existsRRtrequiressshared
t
sharedpathtpathstdefaultthgrctwttexts[paths]
s
default = %s
supdating working directory
ttipN((R9RRRR]RR8R)R+RUR&RR;R'R`tscmutiltvfsRRRtjointbasetlexiststisdirtmkdirtmakedirtopenertreadtIOErrorterrnotENOENTtwriteRCtconfigtclosetstatustlookupR!R"t_update(RCR\tdesttupdatet
origsourceR$tsrcrepotrevtcheckoutR`tdestwvfstdestvfstrequirementstinstRRbtfpttesttuprev((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytshare˜sd	'





	c
Csˆd	}ygd	}d}|jjddtƒ}tj|jƒ}tj|ƒ}xì|jjƒD]Û}	|r|	j	dƒrq^nt
jj|	ƒ}
|
r·|j
|
ƒr·|j|
ƒn|j
|	ƒr^|	j	dƒrÿt
jj|
dƒ}tj||ƒ}ntj|j|	ƒ|j|	ƒ|ƒ\}}||7}q^q^W|rW|jd|ƒn|jd|ƒ|SWnt|ƒ‚nXd	S(
sGcopy files from store of srcrepo in destpath

    returns destlock
    itphasestpublisht
phaserootstdatatlockslinked %d files
scopied %d files
N(RRCt
configboolRRgRhR`tstoretcopylisttendswithRRtdirnametexistsRmRiRŒRt	copyfilestdebugR(
RCR}tdestpathtdestlockthardlinktnumt
srcpublishingtsrcvfstdstvfsRPtdstbasetlockfiletn((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt	copystoreÛs6
c	(Cs’t|tƒrH|j|ƒ}	t|	|ƒ\}}t|||ƒ}
n.|jƒ}
d)|p`gf}|
jƒ}	}t|
|
||ƒ\}}|d)krÌt|ƒ}|rÛ|j	t
dƒ|ƒqÛn|j|ƒ}tj|ƒ}tj|ƒ}|stj
t
dƒƒ‚ntj|dtƒ}|jƒr‹|jƒs`tj
t
dƒ|ƒ‚q‹|jƒr‹tj
t
dƒ|ƒ‚q‹nd)}
}}|
jƒ}zš|	}t|	ƒrØtjjtj|	ƒƒ}nt|ƒrí|}nt}|r2|jƒr2t|ƒr2tj|ƒr2|o,|}n|rny|jdtƒ}
Wqntjk
rjt}qnXn|r|j ddtd	d
ƒtjj!tjj"|dƒƒ}tjj#|ƒsÐtj$|ƒn|}y|}tj%|dtƒWnJt&k
r?}|j't'j(kr9d)}tj
t
dƒ|ƒ‚n‚nXt)|||ƒ}tjj"|d
ƒ}|j*dƒ}tjj"|dƒ}tjj#|ƒrÒtjj#|ƒs¿tj$|ƒntj+||ƒnt|||ƒ}|j dd	d
dt,j-t,j.ƒƒn0y"t|p|||dtƒ}WnJt&k
rz}|j't'j(krtd)}tj
t
dƒ|ƒ‚n‚nXd)}|rÝ|
j/dƒs®tj
t
dƒƒ‚ng|D]}|
j0|ƒ^qµ}|d}n|jƒr|jƒj1|
d|d|ƒn1|r'|j2|d|ƒntj
t
dƒƒ‚d)}|jƒ}|râ|
j/dƒrâ|
j3dƒ}|j4}xN|j5ƒD]@\}} y|j0| ƒ}!|!||<Wqˆtj6k
rÇqˆXqˆW|r6|j7ƒq6nT|r6|j/dƒr6x<|j4j5ƒD](\}} |j8d|dt-| ƒƒqWn|r>|j9dddtƒ}"|"j7d ƒtj|ƒ}#d)|#_:t|#ƒ}$|"j7d!|$ƒ|"j;ƒ|j<j=d"d#|$d
ƒ|r>|tk	rÝ|
j0|ƒ}nd)}%d)}&|d)k	r"y|j0|ƒ}%Wq"tj6k
rq"Xn|%d)krÐyR|j4d$}%d$}||%j>ƒ}'|'d#krot
d%ƒ}&nt
d&ƒ|'}&WqÐt?k
rÌy|j@d#ƒ}%WqÍtj6k
rÈ|j0d'ƒ}%qÍXqÐXn|&sù||%j>ƒ}'t
d(ƒ|'}&n|j<j	|&ƒtA||%ƒ||j4kr;tBjC||ƒq;q>nWd)tD|
|ƒ|d)k	rntEjF|tƒn|
d)k	r‡|
j;ƒnX|
|fS(*sIMake a copy of an existing repository.

    Create a copy of an existing repository in a new directory.  The
    source and destination are URLs, as passed to the repository
    function.  Returns a pair of repository peers, the source and
    newly created destination.

    The location of the source is added to the new repository's
    .hg/hgrc file, as the default to be used for future pulls and
    pushes.

    If an exception is raised, the partly cloned/updated destination
    repository will be deleted.

    Arguments:

    source: repository object or URL

    dest: URL of destination repository to create (defaults to base
    name of source repository)

    pull: always pull from source repository, even in local case

    stream: stream raw data uncompressed from repository (fast over
    LAN, slow over WAN)

    rev: revision to clone up to (implies pull=True)

    update: update working directory after clone completes, if
    destination is local repository (True means update to default rev,
    anything else is treated as a revision)

    branch: branches to clone
    sdestination directory: %s
s#empty destination path is not validRsdestination '%s' already existssdestination '%s' is not emptytwaittpreoutgoingtthrowR\tclones.hgt
notindexedtcaches
cache/branch2tbranch2toutgoingRRKRxsXsrc repository does not support revision lookup and so doesn't support clone by revisionitheadststreamRs)clone from remote to remote not supportedtpushkeyt	bookmarksRRRcRdRes[paths]
s
default = %s
RaRbt@supdating to bookmark @
s$updating to bookmark @ on branch %s
Rfsupdating to branch %s
N(GR8R)RR+RRR'R&R]RwRRRRRgRhRRkRltlistdirR;R9RRtabspathRtcancopyRˆt	hassecretRŒR!t	LockErrorROR^RiR’RmRntOSErrorRrtEEXISTRŸtsjointcopyfileRRRRRxR£tpushtlistkeyst
_bookmarkst	iteritemsR"RtRªRotpasswdRvRCt	setconfigRtKeyErrort	branchtipRyR«t
setcurrentRtshutiltrmtree((RCtpeeroptsR\RztpullR~R{R©RR|tsrcpeerRRtsrclockR–tcleandirR}R®tcopythgdirR•RƒtdstcachedirtsrcbranchcachetdstbranchcachetdestpeerRRtdestrepoR?tmarkstkRžtmR„R*t
defaulturlR†Rwtbn((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyR£ÿs&%	
!
"
"
"	#
	

	


cCs|jjtdƒ|ƒdS(NsI%d files updated, %d files merged, %d files removed, %d files unresolved
(RCRwR(R<tstats((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt
_showstatsÞsc	Cs%tj||t|ddddgƒS(s Update the working directory to node.

    When overwrite is set, changes are clobbered, merged else

    returns stats (see pydoc mercurial.merge.applyupdates)tlabelssworking copytdestinationN(tmergemodR{RR(R<Rt	overwrite((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt
updaterepoâscCsPt||tƒ}t||ƒ|drB|jjtdƒƒn|ddkS(s<update the working directory to node, merging linear changesis1use 'hg resolve' to retry unresolved file merges
i(RØRRÓRCRwR(R<RRÒ((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyR{ës


cCsRt||tƒ}tj|jdƒdtƒ|rDt||ƒn|ddkS(sAforcibly switch the working directory to node, clobbering changest
graftstatet
ignoremissingii(RØRRt
unlinkpathRiRÓ(R<Rt
show_statsRÒ((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytcleanös
cCsxtj||t|tƒ}t||ƒ|drK|jjtdƒƒn|rj|jjtdƒƒn|ddkS(sWBranch merge with node, resolving changes. Return true if any
    unresolved conflicts.isPuse 'hg resolve' to retry unresolved file merges or 'hg update -C .' to abandon
s'(branch merge, don't forget to commit)
i(RÖR{RRRÓRCRwR(R<RtforcetremindRÒ((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytmergeþs

cCsCt|j|ƒ|jdƒƒ\}}t|||ƒ}|jtdƒtj|ƒƒt||||jdƒƒ\}	}
|	r¨g|	D]}|j	|ƒ^qŠ}	nt
j||||	|d|dƒ\}}}
zV|sú|jtdƒƒ|ƒStj
||||ƒ}||||ƒ|jƒWd|
ƒX|ƒdS(	sÐ
    Helper for incoming / gincoming.
    displaychlist gets called with
        (remoterepo, incomingchangesetlist, displayer) parameters,
    and is supposed to contain only code that can't be unified.
    Rscomparing with %s
R~R,RÞsno changes found
Ni(R+RR4RRwRRthidepasswordR&RxR
tgetremotechangestcmdutiltshow_changesetRv(t
displaychlisttsubreporecurseRCR<R\RXtbufferedR$R#RRR~tchlistt	cleanupfnt	displayer((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt	_incoming
s$' $% cs@‡‡‡‡fd†}‡fd†}t||ˆˆˆˆƒS(Ncsmd}ˆjdƒriˆd}xGt|jƒD]3}|j|ƒ}t||jˆˆˆƒƒ}q/Wn|S(Nitsubrepos(R4Rtsortedtsubstatetsubtmintincoming(trettctxtsubpathRï(RXR<R\RC(s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyRæ)s
%csÕtjˆƒ}ˆjdƒr+|jƒnd}x|D]•}|dk	rZ||krZPng|jj|ƒD]}|tkrm|^qm}ˆjdƒr²t|ƒdkr²q8n|d7}|j	||ƒq8WdS(Ntnewest_firstit	no_mergesii(
RãtloglimitR4treverseRt	changelogtparentsRtlentshow(R#RèRêtlimittcountRžtpRú(RX(s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytdisplay2s

1!
(Rë(RCR<R\RXRæR((RXR<R\RCs0/usr/lib/python2.7/dist-packages/mercurial/hg.pyRñ(s	
cCs(|j|pd|pdƒ}t||jdƒƒ\}}|jtdƒtj|ƒƒt||||jdƒƒ\}}|r·gtj	||ƒD]}|j
|ƒ^q™}nt|||ƒ}tj
|jƒ||d|jdƒƒ}	|	j}
|
stj|j||	jƒn|
|fS(Nsdefault-pushRbRscomparing with %s
R~RÞ(RR+R4RwRRRáR&RgtrevrangeRxRt	discoverytfindcommonoutgoingt
unfilteredtmissingtnochangesfoundRCtexcluded(RCR<RzRXR$RRR~R#R§to((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt	_outgoingAs $1	c
sm‡‡‡‡fd†}tjˆƒ}tˆˆˆˆƒ\}}|shtjˆˆ|ˆ|ƒ|ƒSˆjdƒr„|jƒntjˆˆˆƒ}d}	x|D]•}
|dk	rÈ|	|krÈPngˆjj	|
ƒD]}|t
krÛ|^qÛ}ˆjdƒr t|ƒdkr q¦n|	d7}	|jˆ|
ƒq¦W|j
ƒtjˆˆ|ˆ|ƒ|ƒdS(Ncsmd}ˆjdƒriˆd}xGt|jƒD]3}|j|ƒ}t||jˆˆˆƒƒ}q/Wn|S(NiRì(R4RRíRîRïRðR§(RòRóRôRï(RzRXR<RC(s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytrecurseRs
%RõiRöii(RãR÷R	t
outgoinghooksR4RøRäRRùRúRRûRüRv(
RCR<RzRXR
RýRR#RêRþRžRÿRú((RzRXR<RCs0/usr/lib/python2.7/dist-packages/mercurial/hg.pyR§Qs,	

1!

cCs#tj||tt|ƒddkS(s<revert changes to revision in node without updating dirstateii(RÖR{RR(R<Rtchoose((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pytrevertrscCs
tj|ƒS(s&verify the consistency of a repository(t	verifymodtverify(R<((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyRvsc	Cs@tj|dƒr-|jjƒ}|j}n|jƒ}xNd
D]F}|j|ƒpd|jd|ƒ}|r@|jd||dƒq@q@W|jddƒ}|r»|jdd|dƒnxDdD]<}x3|j|ƒD]"\}}|j|||dƒqØWqÂW|jddƒ}|r<|jddtj	|ƒdƒn|S(s*build a remote ui from ui or repo and optstbaseuiR1t	remotecmdRCtcopiedR,tmainreporoottauththostfingerprintst
http_proxytwebtcacerts(R1R(RRR(
RtsafehasattrRRÆRCR4RuR»tconfigitemsR(	tsrcRXtdstRtvRtsecttkeytval((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyRVzs$
!
"(:ti18nRRŒRRRRRR
t	unionrepothttppeertsshpeertstatichttprepoR«RRIR!RgRˆR'RãRRàRÖRRRrRR¿RR&RR+R3R7R9RERJRRQRURR]RR‡RŸR£RÓRØR{RyRÝRëRñR	R§R
RV(((s0/usr/lib/python2.7/dist-packages/mercurial/hg.pyt<module>	sXHl$		 

						
		C	$	Þ					
			!		

Copyright © 2017 || Recoded By Mr.Bumblebee