-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc
@szdZddlmZddlmZddlmZddlmZm	Z	m
Z
mZddlmZm
Z
iZejeƒZdZd#d„Zed	d
„Zedd#d#d„Zed
ddgedƒedƒfddd#edƒfd	dd#edƒfd	dd#edƒfdd	d#edƒfddd#edƒfddd	ed ƒfged!ƒƒd"„ƒZd#S($s´strip changesets and their descendents from history

This extension allows you to strip changesets and all their descendants from the
repository. See the command help for details.
iÿÿÿÿ(t_(tnullid(trelease(tcmdutilthgtscmutiltutil(trepairt	bookmarkstinternalcCs¹g}|d}|r#||}n|jƒd}xt|jƒD]n}|j|ƒjtƒr}tjt	dƒ|ƒ‚qC||jks¡|j|ƒjƒrC|j
|ƒqCqCW|S(srreturn list of subrepos at a different revision than substate.
    Abort if any subrepos have uncommitted changes.is'uncommitted changes in subrepository %sN(tNonetparentstsortedtsubstatetsubtdirtytTrueRtAbortRtappend(trepotbaserevtinclsubstwctxtbctxts((s//usr/lib/python2.7/dist-packages/hgext/strip.pyt
checksubstates

$tcCs²tj|ƒ|jƒd \}}}}|s¢|sG|sG|sG|rmtdƒtjtd|ƒƒ‚nt|ƒr¢tdƒtjtd|ƒƒ‚q¢n||||fS(Nislocal changes foundslocal changed subrepos found(RtcheckunfinishedtstatusRRRR(Rtforcet	excsuffixtmtatrtd((s//usr/lib/python2.7/dist-packages/hgext/strip.pytchecklocalchanges!s


tallc
CsKd}}z,|jƒ}|jƒ}|rÆt|d|ƒ|jj|dƒ\}	}
tj|dƒr¦|
tkr¦|
g|j	j
D]}|j^q…kr¦|
}	ntj
||	ƒ|jjƒntj||||ƒ|j}|r5||jkr
tj|ƒn||=|jƒ|jtdƒ|ƒnWdt||ƒXdS(NRitmqsbookmark '%s' deleted
(R
twlocktlockR#t	changelogRRtsafehasattrRR%tappliedtnodeRtcleantdirstatetwriteRtstript
_bookmarkst_bookmarkcurrentRtunsetcurrentRR(
tuiRtrevstupdatetbackupRtbookmarkR&R'turevtp2txtmarks((s//usr/lib/python2.7/dist-packages/hgext/strip.pyR/-s,
(		
R/R!trevsNstrip specified revision (optional, can specify revisions without this option)tREVtfRsDforce removal of changesets, discard uncommitted changes (no backup)s	no-backups
no backupstnobackupsno backups (DEPRECATED)tnsignored  (DEPRECATED)tktkeeps'do not modify working copy during striptBR7s.remove revs only reachable from given bookmarks1hg strip [-k] [-f] [-n] [-B bookmark] [-r] REV...c!
s d}|jdƒrd}n'|jdƒs<|jdƒrEd}n|j‰t|ƒ|jdƒ}ttj||ƒƒ}|jƒ}z|jdƒr”|jdƒ}|j}||krİtj	t
d	ƒ|ƒ‚nt}xF|jƒD]8\}	}
|	|krğ|
||j
ƒkrğt}PqğqğW|r`|jd
|||ƒ}|jt|ƒƒn|s”||=|jƒ|jt
dƒ|ƒq”n|s²tj	t
dƒƒ‚ntˆj|ƒƒ}|j|ƒ}
|j|ƒ}t}xB|jjƒD]1}|tkrûˆj|ƒ|
krût}PqûqûWt‡fd
†|Dƒƒ}t|ddƒ}|dk	r|jrˆj|jdƒƒ|
krt|_d}t|jƒ}x6t|jƒD]%\}}|j
|kr¿|}Pq¿q¿W|j||5|j ƒqnt!|ƒ}|rS|jdƒrS|jj|dƒ\}}tj"|dƒr‘|tkr‘|g|j#jD]}|j
^qpkr‘|}n||}|jd|jƒƒ}g}x%|D]}|j$||j%ƒƒqÁW|j}g|D]}||dkrò|^qò} |j$| ƒ|jj&||j'ƒ|ƒ|jjƒt}nt(|||d|d|d|jdƒd|jdƒƒWd|j)ƒXdS(sÃstrip changesets and all their descendants from the repository

    The strip command removes the specified changesets and all their
    descendants. If the working directory has uncommitted changes, the
    operation is aborted unless the --force flag is supplied, in which
    case changes will be discarded.

    If a parent of the working directory is stripped, then the working
    directory will automatically be updated to the most recent
    available ancestor of the stripped parent after the operation
    completes.

    Any stripped changesets are stored in ``.hg/strip-backup`` as a
    bundle (see :hg:`help bundle` and :hg:`help unbundle`). They can
    be restored by running :hg:`unbundle .hg/strip-backup/BUNDLE`,
    where BUNDLE is the bundle file created by the strip. Note that
    the local revision numbers will in general be different after the
    restore.

    Use the --no-backup option to discard the backup bundle once the
    operation completes.

    Strip is not a history-rewriting operation and can be used on
    changesets in the public phase. But if the stripped changesets have
    been pushed to a remote repository you will likely pull them again.

    Return 0 on success.
    R$R6R/t	no_backupR?tnoneR<R7sbookmark '%s' not foundsmancestors(bookmark(%s)) - ancestors(head() and not bookmark(%s)) - ancestors(bookmark() and not bookmark(%s))sbookmark '%s' deleted
sempty revision setc3s|]}ˆj|ƒVqdS(N(R+(t.0R!(tcl(s//usr/lib/python2.7/dist-packages/hgext/strip.pys	<genexpr>©sR%tqtipiRBs%s::.R@R5RN(*tgetR(tlisttsetRtrevrangeR&R0RRRRt	iteritemsR+tFalseR4R5R.tdescendantstuniont
differenceR-RRR<tgetattrR
R*tlookuptapplieddirtytlent	enumeratet	savedirtyRR)R%textendtfilestrebuildtmanifestR/R(!R3RR4toptsR6R&tmarkR;tuniquebmRR@trsrevsROtstrippedrevstrootsR5tpt	rootnodestqtstarttendtitstatusentryR8R9R:tuctxtdescendantrevstchangedfilesR<R-R>t
dirchanges((RGs//usr/lib/python2.7/dist-packages/hgext/strip.pytstripcmdJs+				"	
!	
(	

	)

	#N(t__doc__tmercurial.i18nRtmercurial.nodeRtmercurial.lockRt	mercurialRRRRRRtcmdtabletcommandt
testedwithR
RRNR#RR/Rm(((s//usr/lib/python2.7/dist-packages/hgext/strip.pyt<module>s*"

Copyright © 2017 || Recoded By Mr.Bumblebee