-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/shelve.pyc

ó
Ì\,Tc@s&dZddlmZddlmZmZmZmZddlm	Z	m
Z
mZmZm
Z
ddlmZmZmZmZmZmZmZddlmZm	Z	mZddlmZddlmZdd	lZiZe
jeƒZd
Zdefd„ƒYZ d
efd„ƒYZ!d„Z"d„Z#d„Z$d„Z%d„Z&d„Z'd„Z(d„Z)d„Z*d„Z+d„Z,edddd	edƒfddd	ed ƒfd!d"d	ed#ƒfd!d$d!ed%ƒed&ƒfged'ƒƒd(„ƒZ.ed)d*d+d	ed,ƒfd!d-d	ed.ƒfd!d$d!ed/ƒed&ƒfd0d1d	ed2ƒfd3d4e/ed5ƒfd6d7d	ed8ƒfd9d:d!ed;ƒed<ƒfd=d>d!ed?ƒed@ƒfdAdBd	edCƒfd!dDd	edEƒfg
e
j0edFƒƒdG„ƒZ1dH„Z2d	S(Is@save and restore changes to the working directory

The "hg shelve" command saves changes made to the working directory
and reverts those changes, resetting the working directory to a clean
state.

Later on, the "hg unshelve" command restores the changes saved by "hg
shelve". Changes can be restored even after updating to a different
parent, in which case Mercurial's merge machinery will resolve any
conflicts if necessary.

You can have more than one shelved change outstanding at a time; each
shelved change has a distinct name. For details, see the help for "hg
shelve".
iÿÿÿÿ(t_(tnullidtnullrevtbinthex(tchangegrouptcmdutiltscmutiltphasestcommands(terrorthgtmdifftmergetpatchtrepairtutil(ttemplatefiltersRtexchange(tlock(trebaseNtinternaltshelvedfilecBs\eZdZd
d„Zd„Zd„Zd„Zd„Zdd„Z	d„Z
d	„ZRS(s…Helper for the file storing a single shelve

    Handles common functions on shelve files (.hg/.files/.patch) using
    the vfs layercCsT||_||_tj|jdƒƒ|_|rG|d||_n	||_dS(Ntshelvedt.(trepotnameRtvfstjointfname(tselfRRtfiletype((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt__init__*s		cCs|jj|jƒS(N(RtexistsR(R((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR!3scCs|jj|jƒS(N(RRR(R((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytfilename6scCstj|jƒƒdS(N(RtunlinkR"(R((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR#9scCs|jj|jƒS(N(RtstatR(R((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR$<strbcCsey|j|j|ƒSWnGtk
r`}|jtjkrA‚ntjtdƒ|jƒ‚nXdS(Nsshelved change '%s' not found(	RRtIOErrorterrnotENOENTRtAbortRR(Rtmodeterr((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytopener?scCsr|jƒ}zTtj|jj||j|jƒ}tj|j|dd|jj	|jƒƒWd|j
ƒXdS(Ntunshelvesbundle:(R,Rt
readbundleRtuiRRRtaddchangegroupRtclose(Rtfptgen((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytapplybundleGs$cCs tj||jd|jƒdS(NtHG10UN(RtwritebundleRR(Rtcg((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR6PsN(t__name__t
__module__t__doc__tNoneR R!R"R#R$R,R4R6(((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR%s							tshelvedstatecBsGeZdZdZdZed„ƒZed„ƒZed„ƒZRS(sÌHandle persistence during unshelving operations.

    Handles saving and restoring a shelved state. Ensures that different
    versions of a shelved state are possible and handles them appropriately.
    iR<cCs=|j|jƒ}zÏt|jƒjƒƒ}||jkrTtjtdƒƒ‚n|jƒjƒ}|jƒjƒ}|jƒjƒ}g|jƒj	ƒD]}t
|ƒ^q}g|jƒj	ƒD]}t
|ƒ^qÈ}	Wd|jƒX|ƒ}
||
_|t
|ƒ|
_
|t
|ƒ|
_||
_|	|
_|
S(NsIthis version of shelve is incompatible with the version used in this repo(R,t	_filenametinttreadlinetstript_versionRR)RtsplitRR1Rtwctxt
pendingctxtparentst
stripnodes(tclsRR2tversionRRCRDthRERFtobj((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytload\s$+/				c	Csñ|j|jdƒ}|jd|jƒ|jd|ƒ|jdt|jƒƒƒ|jdt|jƒƒƒ|jddjg|jjƒD]}t|ƒ^q“ƒƒ|jddjg|D]}t|ƒ^qƃƒ|j	ƒdS(Ntwbs%i
s%s
t (
R,R=twriteRARtnodeRtdirstateRER1(	RGRRtoriginalwctxRDRFR2tptn((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytsavevs<3cCs#tj|j|jƒdtƒdS(Nt
ignoremissing(Rt
unlinkpathRR=tTrue(RGR((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytclears(	R8R9R:RAR=tclassmethodRKRTRX(((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR<Ssc	sEd„}|d'}|jƒ}t|ƒdkrItjtdƒƒ‚n|d}d‰|jpq|jƒpqd‰ˆjddƒ‰‡fd	†}g‰‡‡fd
†}	|j	ƒt
krâd|jƒjddƒd}
nd
}
|dsÿ|
|d<n|d}d'}}
}}zÙ|j
ƒ}|jƒ}
|jjƒ}|jddd„ƒ}|ršt||dƒjƒrétjtdƒ|ƒ‚qénOxL|ƒD](}t||dƒjƒs¤|}Pq¤q¤Wtjtdƒˆƒ‚d|ksd|krtjtdƒƒ‚n|jdƒr@tjtdƒƒ‚ntj|||	||ƒ}|sË|jdtj|d'||ƒƒ}|dr´|jtdƒt|dƒƒn|jtdƒƒdStj|tj|gƒt||dƒjdƒ}|jd jˆƒƒt |||ƒƒ}t!j"|||gd!ƒ}t||dƒj#|ƒtj$||gd"t||d#ƒjdƒd$t%j&d%t'ƒƒ|j(ƒrÆtj)|
|j*ƒƒ}
n|jtd&ƒ|ƒt+j,||j	ƒƒWd'|r|jj,|ƒ|jjƒn|r0|j-ƒnt.j/|
|ƒXd'S((s$subcommand that creates a new shelvecss«ttgƒ}tjƒ}|j|ƒx||r¦|jƒ}|jƒVxX|jƒD]J}|jƒ}||krU|j	|ƒ|j
ƒrŸ|j|ƒqŸqUqUWq+WdS(sgCompute the public ancestors of a commit.

        Much faster than the revset ancestors(ctx) & draft()N(tsetRRtdequetappendtpopleftROREtrevtaddtmutable(tctxtseentvisittparentR^((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytpublicancestorsˆs
	
iscannot shelve while mergingisshelve@localhosttdefaultt/Rc3s2ˆVx&tddƒD]}dˆ|fVqWdS(Niids%s-%02d(txrange(ti(tlabel(s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytgennames¦scs±x+|jd|ƒd D]}ˆj|ƒqWtj|dƒ}|rb|jjt}|j_nz2|j|ˆ|jdƒ|dt	j
|ƒSWd|r¬||j_nXdS(Ntmatchitmqtdateteditor(tstatustextendRtsafehasattrRmtcheckappliedtFalsetcommittgetRtgetcommiteditor(R/RtmessageRltoptstflistthasmqtsaved(tshelvedfilestuser(s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt
commitfunc­sschanges to '%s's
s(changes in empty repository)RxRRutreportcSsdS(N(R;(tx((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt<lambda>ÍsRs*a shelved change named '%s' already existss#too many shelved changes named '%s's\s,shelved change names may not contain slashesRs+shelved change names may not start with '.'Rlis4nothing changed (%d missing files, see 'hg status')
snothing changed
tfilesRLttshelveR2RRytgitsshelved as %s
N(0R;REtlenRR)Rt_bookmarkcurrenttbranchtreplaceRORtdescriptionRBtwlockRt
_bookmarkstcopyttransactionRR!t
startswithRRuRpRRlRtretractboundarytsecretR,RNRtlistRtchangegroupsubsetR6texportRtdiffoptsRWt	formattedtellipsist	termwidthRtupdatetaborttlockmodtrelease(R/RtpatsRyReRCRERdRkRtdescRRŒRttrtbmsRSROR$R2tbasesR7((RjR}R~s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt	createcmd…s‚	

#



%

cCs†d}zk|jƒ}xX|jjdƒD]D\}}|jddƒd}|d	kr(t||ƒjƒq(q(WWdtj|ƒXdS(
s#subcommand that deletes all shelvesRRiiÿÿÿÿRRƒRN(shgsfilesspatch(	R;RŒRtreaddirtrsplitRR#RœR(R/RRŒRRtsuffix((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt
cleanupcmdscCsÒ|stjtdƒƒ‚nd}z™|jƒ}yBx;|D]3}x*djƒD]}t|||ƒjƒqPWq=WWnDtk
r»}|j	t	j
krŸ‚ntjtdƒ|ƒ‚nXWdtj|ƒXdS(s)subcommand that deletes a specific shelvesno shelved changes specified!shg files patchsshelved change '%s' not foundN(
RR)RR;RŒRBRR#tOSErrorR'R(RœR(R/RRžRŒRR¦R+((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt	deletecmds
"!c	CsÝy|jjdƒ}Wn,tk
rD}|jtjkr@‚ngSXg}x|D]w\}}|jddƒ\}}|sR|dkrqRnt||ƒjƒ}|j|j	t||ƒj
ƒfƒqRWt|dtƒS(s6return all shelves in repo as list of (time, filename)RRiRtreverse(
RR¤R¨R'R(R¥RR$R\tst_mtimeR"tsortedRW(	RtnamesR+tinfoRRtpfxtsfxtst((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytlistshelves&s)cCsŠt|ƒ}d}|jƒs-|jƒ}nd}xPt|ƒD]B\}}tj|ƒd}|rw||krwq@n|j|d|ƒd}|jr¬|jdƒq@n|jddt|ƒƒd}	d	t	j
tj|ƒd
tƒ}
|j|
ddƒ|jddt|
ƒƒ|	d7}	t
|d
dƒ}z:xqtr°|jƒ}|s\Pn|jdƒs@|jƒ}
|jƒrœtj|
||	ƒ}
n|j|
ƒPq@q@W|jdƒ|dpÏ|dsØw@n|jƒ}|dr'x6tjt|ƒD]\}}|j|d|ƒqWn|drsx?tj|d|dtƒD]\}}|j|d|ƒqMWnWd|jƒXq@WdS(s,subcommand that displays the list of shelvesiPs
shelve.newestiRjsshelve.names
RMis(%s)tabbrevs
shelve.ageis.patchR%t#RR$twidthR†N(RZtplainR™R²RRBRNtquietR‡RtagetmakedateRWtopenR?RtrstripR—R˜t	readlinesRt	difflabeltitert
diffstatuiR1(R/RRžRyRµt	namelabeltmtimeRtsnametusedR¸R2tlineRŸt	difflinestchunkRj((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytlistcmd7sX	
"
	



cCs4|j|jjƒkr0tjtdƒƒ‚ndS(s'check parent while resuming an unshelves5working directory parents do not match unshelve stateN(RERPRR)R(Rtstate((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytcheckparentsgscCs/|jƒ}g|D]}|j||ƒ^qS(N(tgetcwdtpathto(RRƒtcwdtf((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytpathtofilesmscCs"|jƒ}d	}zøt||ƒtj|jdƒ|jdƒƒytj||itd6Wn6tk
rštj|jdƒ|jdƒƒ‚nX|j	ƒ}t
|||j|jƒt
j|||jddddƒtj|ƒ|jtdƒ|jƒWd	tj||ƒXd	S(
s-subcommand that abort an in-progress unshelvetunshelverebasestatetrebasestateR›tbackuptnonettopicR…sunshelve of '%s' aborted
N(RŒR;RÉRtrenameRRRWt	ExceptionRt
mergefilesRCRDRR@RFR<RXtwarnRRRœR(R/RRÈRyRŒR((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt
unshelveabortqs&

"
c	Cs|j}zçt|_tj||jƒƒg}|j|jƒƒ|j|jƒdjƒƒ|jdtƒd \}}}}	}
x1|
D])}||krt	j
||dƒqqWtj||||j
jƒt||ƒitd6ŽWd||_XdS(sLupdates to wctx and merges the changes from shelvectx into the
    dirstate.itunknownis.origt	no_backupN(R·RWRRšRORqRƒRERpRRÔRtrevertRPRÎ(R/RRCt	shelvectxtoldquietRƒtmtatrtdtutfile((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyRÖs		%
cCs>|ds:x-djƒD]}t|||ƒjƒqWndS(s&remove related files after an unshelvetkeepshg files patchN(RBRR#(R/RRRyR((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytunshelvecleanup£s
c	CsÒ|jƒ}d}z¨t||ƒtj|ƒ}g|D]}||dkr8|^q8r~tjtdƒdtdƒƒ‚n|jƒ}tj	|j
dƒ|j
dƒƒytj||itd6Wn6t
k
rtj	|j
dƒ|j
dƒƒ‚nX|d}||jjƒkr.|j}nt|||j|ƒ|jj|jƒƒtj|||jd	d
ddƒtj|ƒt|||j|ƒ|jtd
ƒ|jƒWdtj||ƒXdS(s.subcommand to continue an in-progress unshelveRâs$unresolved conflicts, can't continuethints/see 'hg resolve', then 'hg unshelve --continue'RÏRÐtcontinuettipRÑRÒRÓR…sunshelve of '%s' complete
N(RŒR;RÉR
t
mergestateRR)RRRÔRRRWRÕRDtchildrenRÖRCRFR\RORR@R<RXRåRRpRœR(	R/RRÈRyRŒRtmsRÍRÜ((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytunshelvecontinue©s:
)

"
R-RßR›s&abort an incomplete unshelve operationtcRçs)continue an incomplete unshelve operationtRäskeep shelve after unshelvingRns+set date for temporary commits (DEPRECATED)tDATEshg unshelve [SHELVED]cOs|d}|d}|r2|r2tj|ƒn|s>|r|rb|rbtjtdƒƒ‚n|r€tjtdƒƒ‚nytj|ƒ}Wn@tk
rÕ}|jtj	kr½‚ntjtdƒƒ‚nX|rït
||||ƒS|r¤t||||ƒSn™t|ƒdkr5tjtdƒƒ‚no|sšt
|ƒ}|setjtdƒƒ‚ntj|d	dƒd}|jtd
ƒ|ƒn
|d	}t||dƒjƒsØtjtdƒ|ƒ‚n|j}	d!}
}}zö|jƒ}|jƒ}
|jd
dd„ƒ}t|ƒ}
|d}|}|jƒd \}}}}|sr|sr|sr|râ|jtdƒƒd„}i}d|d<|jdƒ|d<t|_tj|||g|ƒ}||}nt|_t||dƒjƒg|jd|
ƒD]}|jƒ^q}tj|tj|ƒ|	|_|d}|jƒ|j ƒd	jƒkr˜|jtdƒƒyAt!j!||i|j"ƒgd6t#|j"ƒƒd6td6Wn¢t$j%k
ro|j&ƒgt'|
t|ƒƒD]}|j(j|ƒ^qþ}tj)|||||ƒtj*|j+dƒ|j+dƒƒt$j%td ƒƒ‚nX|d}||j,ƒkr˜|}q˜nt-||||ƒtj.|ƒ|j/ƒj(j0|
|ƒt1||||ƒWd!|	|_|r|j2ƒnt3j2||
ƒXd!S("srrestore a shelved change to the working directory

    This command accepts an optional name of a shelved change to
    restore. If none is given, the most recent shelved change is used.

    If a shelved change is applied successfully, the bundle that
    contains the shelved changes is deleted afterwards.

    Since you can restore a shelved change on top of an arbitrary
    commit, it is possible that unshelving will result in a conflict
    between your changes and the commits you are unshelving onto. If
    this occurs, you must resolve the conflict, then use
    ``--continue`` to complete the unshelve operation. (The bundle
    will not be deleted until you successfully complete the unshelve.)

    (Alternatively, you can use ``--abort`` to abandon an unshelve
    that causes a conflict. This reverts the unshelved changes, and
    does not delete the bundle.)
    R›Rçs"cannot use both abort and continues:cannot combine abort/continue with naming a shelved changesno unshelve operation underwayis&can only unshelve one change at a timesno shelved changes to apply!isunshelving change '%s'
Rƒsshelved change '%s' not foundR-R€cSsdS(N(R;(R((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR‚sRisLtemporarily committing pending changes (restore with 'hg unshelve --abort')
cSsttj|dƒ}|r4|jjt}|j_nz#|j|d|jdƒ|ƒSWd|ro||j_nXdS(NRmsshelve@localhostRn(RRrRmRsRtRuRv(R/RRxRlRyR{R|((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR,ss pending changes temporary commitRxRnRs%d:Rèsrebasing shelved changes
R^tdestRäRÐRÏsFunresolved conflicts (see 'hg resolve', then 'hg unshelve --continue')N(4RtcheckunfinishedRR)RR<RKR&R'R(RØRìR‡R²RBRpRR!R·R;RRŒRRvRWRuR4RZRORR‘R’RERR^tstrR
tInterventionRequiredR1Rht	changelogRTRÔRRêRÖRXt
unfilteredR@RåRRœ(R/RRRytabortft	continuefRÈR+tbasenameRÝRŒRR t	oldtiprevtpctxttmpwctxRÞRßRàRáRttempoptsRORatnodesRÜR^RF((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyR-Ós¤


	
	
	
	+	
"
1

	
R…tAt	addremoves7mark new/missing files as added/removed before shelvingtcleanupsdelete all shelved changess%shelve with the specified commit dateRátdeletes"delete the named shelved change(s)tetedits invoke editor on commit messagestlR“slist current shelvesRÞRxsuse text as shelve messagetTEXTRSRs)use the given name for the shelved committNAMERRRs
show patchR$s(output diffstat-style summary of changesshg shelve [OPTION]... [FILE]...c
stj|ƒdddddddddg	‰‡‡fd†}|dƒrw|rjtjtdƒƒ‚nt||ƒS|dƒr“t|||ƒS|dƒr²t|||ˆƒSx7dD]/}ˆ|r¹tjtd
ƒ|fƒ‚q¹q¹Wt|||ˆƒSdS(sŠsave and set aside changes from the working directory

    Shelving takes files that "hg status" reports as not clean, saves
    the modifications to a bundle (a shelved change), and reverts the
    files so that their state in the working directory becomes clean.

    To restore these changes to the working directory, using "hg
    unshelve"; this will work even if you switch to a different
    commit.

    When no files are specified, "hg shelve" saves all not-clean
    files. If specific files or directories are named, only changes to
    those files are shelved.

    Each shelved change has a name that makes it easier to find later.
    The name of a shelved change defaults to being based on the active
    bookmark, or if there is no active bookmark, the current named
    branch.  To specify a different name, use ``--name``.

    To see a list of existing shelved changes, use the ``--list``
    option. For each shelved change, this will print its name, age,
    and description; use ``--patch`` or ``--stat`` for more details.

    To delete specific shelved changes, use ``--delete``. To delete
    all shelved changes, use ``--cleanup``.
    RÿtcreateRRRR“RxRRR$csaˆ|r]xLˆD]D\}}ˆ|r||krtjtdƒ||fƒ‚qqWtSdS(Ns2options '--%s' and '--%s' may not be used together(RR)RRW(toptRit	allowable(t
allowablesRy(s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytcheckoptµs
s+cannot specify names when using '--cleanup's4option '--%s' may not be used when shelving a changeN(RÿR(RR(RR(RR(slistslist(smessageR(snameR(spatchslist(sstatslist(spatchsstat(	RRñRR)RR§R©RÇR£(R/RRžRyRRi((R
Rys0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt	shelvecmdvs01
	


cCs2tjjtjtttdƒtdƒgƒdS(Nsunshelve already in progresss5use 'hg unshelve --continue' or 'hg unshelve --abort'(RtunfinishedstatesR\R<R=RtR(R/((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pytextsetupËs		(3R:tmercurial.i18nRtmercurial.nodeRRRRt	mercurialRRRRR	R
RRR
RRRRRRRœthgextRR'tcmdtabletcommandt
testedwithtobjectRR<R£R§R©R²RÇRÉRÎRØRÖRåRìR;R-RttwalkoptsRR(((s0/usr/lib/python2.7/dist-packages/hgext/shelve.pyt<module>sr"(4.2	‚	
			0						*				š										@

Copyright © 2017 || Recoded By Mr.Bumblebee