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/strip.pyc
ó
ÛXc
@@sŠdZddlmZddlmZddlmZmZm	Z	m
Z
mZm
Z
mZmZmZmZejZejZiZejeƒZdZd d„Zedd„Zeed d d	„Zed
ddged
ƒedƒfddd edƒfddd edƒfddd edƒfddd edƒfddd edƒfddgedƒfgedƒƒd„ƒZd S(!sŽstrip changesets and their descendants from history

This extension allows you to strip changesets and all their descendants from the
repository. See the command help for details.
i(tabsolute_import(t_(
t	bookmarkstcmdutilterrorthgtlocktmergetnodetrepairtscmutiltutilsships-with-hg-corecC@s›g}|d}|r#||}n|jƒd}xat|jƒD]P}|j|ƒjtƒ||jksƒ|j|ƒjƒrC|j|ƒqCqCW|S(srreturn list of subrepos at a different revision than substate.
    Abort if any subrepos have uncommitted changes.iN(	tNonetparentstsortedtsubstatetsubt
bailifchangedtTruetdirtytappend(trepotbaserevtinclsubstwctxtbctxts((s//usr/lib/python2.7/dist-packages/hgext/strip.pyt
checksubstate s

$tcC@s¢tj|ƒ|jƒ}|sž|jsC|jsC|jsC|jritdƒtj	td|ƒƒ‚nt
|ƒržtdƒtj	td|ƒƒ‚qžn|S(Nslocal changes foundslocal changed subrepos found(RtcheckunfinishedtstatustmodifiedtaddedtremovedtdeletedRRtAbortR(Rtforcet	excsuffixR((s//usr/lib/python2.7/dist-packages/hgext/strip.pytchecklocalchanges/s
$

cC@s—d}}zx|jƒ}|jƒ}|rÏt|d|ƒ|jj|dƒ\}	}
tj|dƒrŠ|
tkrŠ|
g|j	j
D]}|j^q…krŠ|
}	ntj
||	ƒ|jj|jƒƒntj||||ƒ|j}|r|jdƒK}
|j|kr%tj|ƒnx|D]
}||=q,W|j|
ƒWdQXx.t|ƒD]}|jtdƒ|ƒq]WnWdt||ƒXdS(NR$itmqtstripsbookmark '%s' deleted
(RtwlockRR&t	changelogR
RtsafehasattrtnullidR'tappliedRRtcleantdirstatetwritetcurrenttransactionR	R(t
_bookmarksttransactiont_activebookmarktbookmarksmodt
deactivatetrecordchangeRRtrelease(tuiRtrevstupdatetbackupR$RR)Rturevtp2txt	repomarksttrtbookmark((s//usr/lib/python2.7/dist-packages/hgext/strip.pyR(;s2
(		
"R(trtrevsNstrip specified revision (optional, can specify revisions without this option)tREVtfR$sDforce removal of changesets, discard uncommitted changes (no backup)s	no-backups
no backupstnobackupsno backups (DEPRECATED)tnsignored  (DEPRECATED)tktkeeps,do not modify working directory during striptBRBs.remove revs only reachable from given bookmarks,hg strip [-k] [-f] [-B bookmark] [-r] REV...c$@s3t}|jdƒs$|jdƒr-t}n|j‰t|ƒ|jdƒ}ttj||ƒƒ}|jƒºt|jdƒƒ}|r|j	}|j
|ƒsâtjt
dƒdjt|t|jƒƒƒƒƒ‚ni}x3|jƒD]%\}}	|j|	gƒj|ƒqõWxO|jƒD]A}
|j|
ƒr+tj||
dƒ}|jt|ƒƒq+q+W|sd	}}
z||jƒ}|jdƒ}
x|D]
}||=q¥W|j|
ƒ|
jƒx+t|ƒD]}|jt
dƒ|ƒqÚWWd	t||
ƒXqn|s1tjt
d
ƒƒ‚ntˆj |ƒƒ}|j!|ƒ}|j"|ƒ}t}xB|j#j$ƒD]1}|t%krzˆj&|ƒ|krzt}PqzqzWt‡fd†|Dƒƒ}t'|dd	ƒ}|d	k	r„|j(r„ˆj&|j)d
ƒƒ|kr„t|_*d}t+|j(ƒ}x6t,|j(ƒD]%\}}|j-|kr>|}Pq>q>W|j(||5|j.ƒq„nt|ƒ}|rø|jdƒrø|jj$|dƒ\}}t/j0|dƒr|t%kr|g|j1j(D]}|j-^qïkr|}n||}|j2d|j&ƒƒ}g}x%|D]} |j3|| j4ƒƒq@W|j#}!g|!D]}"|!|"dkrq|"^qq}#|j3|#ƒ|j#j5||j6ƒ|ƒ|j#j|j7ƒƒt8j9j:||dj-ƒƒt}nt;|||d|d|d|jdƒd|ƒWd	QXdS(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.
    t	no_backupRGRDRBsbookmark '%s' not foundt,isbookmark '%s' deleted
Nsempty revision setc3@s|]}ˆj|ƒVqdS(N(R(t.0RC(tcl(s//usr/lib/python2.7/dist-packages/hgext/strip.pys	<genexpr>ŸsR'tqtipRJs%s::.RHt.R<R;R$R(<RtgettFalseR*tlisttsetR
trevrangeR)R2tissubsetRR#RtjoinRtkeyst	iteritemst
setdefaultRtvaluest
issupersetR	t
stripbmrevsetR;RRR3R7tcloseR0R8tdescendantstuniont
differenceR/R
R,RDtgetattrR-tlookuptapplieddirtytlent	enumerateRt	savedirtyRR+R'R:textendtfilestrebuildtmanifestR1Rt
mergestateR.R(($R9RR:toptsR<RR@tnodetobookmarkstmarkRtmarkstrsrevsRRARBR`tstrippedrevstrootsR;tpt	rootnodestqtstarttendtitstatusentryR=R>R?tuctxtdescendantrevstchangedfilesRDR/RFt
dirchanges((ROs//usr/lib/python2.7/dist-packages/hgext/strip.pytstripcmd[s˜,		
	,



!	
(	

	)
	N(t__doc__t
__future__Rtmercurial.i18nRt	mercurialRR5RRRRtlockmodRRtnodemodR	R
RR,R8tcmdtabletcommandt
testedwithRRRSR&RR(R€(((s//usr/lib/python2.7/dist-packages/hgext/strip.pyt<module>s*F