-=[ Mr. Bumblebee ]=-
_Indonesia_

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

ó
Ì\,Tc@s·ddlZddlZddlZddlZddlZd„Zd„Zd„Zd„Z	d„Z
d„Zied6e	d	6e
d
6ed6Zd„Z
d
efd„ƒYZdS(iÿÿÿÿNcCstj|dƒS(scRevisions candidates to be hidden

    This is a standalone function to help extensions to wrap it.tobsolete(Rtgetrevs(trepo((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pythideablerevsscs^|jjst‚t|ƒ}g}|rZ|j}t|ƒ}|jd|ƒ}|jdt|ƒt|ƒƒ}g|D]}||krz|^qz}x+|djƒD]}|j	|j
ƒƒq©Wx-|jjƒD]}	|j	|j
|	ƒƒqÖWi}
t
j|j||
iƒ|
rZ|j
|j‰‰|j‡‡fd†|
jƒDƒƒqZn|S(s…Get revisions that will block hidden changesets from being filtered

    This is a standalone function to help extensions to wrap it.tstarts(%ld) and children(%ld)c3s/|]%}|dˆkrˆ|dƒVqdS(iN((t.0tt(tnodemaptrev(s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pys	<genexpr>-sN(t	changelogtfilteredrevstAssertionErrorRtmintrevstlisttNonetparentstappendRt
_bookmarkstvaluesttagsmodt
readlocaltagstuiRtextend(Rthideabletblockerstclt
firsthideableR
ttofiltertrtpartbmttags((RRs6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyt_gethiddenblockerss(	%,csj|jjst‚t|ƒ}|rc|j}|jt|ƒdtƒ‰t‡fd†|DƒƒStƒS(sbcompute the set of hidden revision to filter

    During most operation hidden should be filtered.t	inclusivec3s!|]}|ˆkr|VqdS(N((RR(tblocked(s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pys	<genexpr>9s(R	R
RRt	ancestorsR!tTruet	frozenset(RRR((R#s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyt
computehidden0s	cs¿ˆjjst‚tˆdƒ}tjˆƒr·ˆj‰tj‰ˆjj‰t	‡fd†ˆjj
ˆDƒƒ}ˆjd|ƒ}t‡‡‡fd†|Dƒƒ}t
||BƒS|SdS(s†compute the set of revision that should be filtered when used a server

    Secret and hidden changeset should not pretend to be here.tvisiblec3s|]}ˆj|ƒVqdS(N(R(Rtn(R(s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pys	<genexpr>GsRc3s*|] }ˆˆ|ƒˆkr|VqdS(N((RR(tgetphaseRtsecret(s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pys	<genexpr>IsN(R	R
Rt
filterrevstphasest	hassecretR+t_phasecachetphaseRt
phaserootsR
tsetR&(RthiddenstfirstR
tsecrets((RR*RR+s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pytcomputeunserved<s		&"cskˆjjst‚tjˆjjdƒrdˆjj‰tˆdƒ}t	‡‡fd†|DƒƒSt	ƒS(s†compute the set of revision that should be filtered when used a server

    Secret and hidden changeset should not pretend to be here.itbasec3s$|]}ˆˆ|ƒr|VqdS(N((RR(R*R(s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pys	<genexpr>Ws(
R	R
RtutiltanyR/R1R0R,R&(Rt
maymutable((R*Rs6/usr/lib/python2.7/dist-packages/mercurial/repoview.pytcomputemutableNscs™|jjst‚|j‰tˆƒ}xF|jjdD]4}|r9t|t‡fd†|Dƒƒƒ}q9q9Wtd|ƒ}tt	|tˆƒƒƒS(s.Everything impactable by mutable revision

    The immutable filter still have some chance to get invalidated. This will
    happen when:

    - you garbage collect hidden changeset,
    - public phase is moved backward,
    - something is changed in the filtering (this could be fixed)

    This filter out any mutable changeset and any public changeset that may be
    impacted by something happening to a mutable revision.

    This is achieved by filtered everything with a revision number egal or
    higher than the first mutable changeset is filtered.ic3s|]}ˆj|ƒVqdS(N(R(RR(R(s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pys	<genexpr>nsi(
R	R
RtlenR/R1RtmaxR&txrange(Rtfirstmutabletroots((Rs6/usr/lib/python2.7/dist-packages/mercurial/repoview.pytcomputeimpactableZs	,R(tservedt	immutableR7cCs@||jkr5t|}||jƒƒ|j|<n|j|S(s5returns set of filtered revision for this filter name(tfilteredrevcachetfiltertablet
unfiltered(Rt
filternametfunc((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyR,~s
trepoviewcBsbeZdZd„Zed„ƒZd„Zd„Zd„Zd„Z	d„Z
ed„ƒZRS(	sæProvide a read/write view of a repo through a filtered changelog

    This object is used to access a filtered version of a repository without
    altering the original repository object itself. We can not alter the
    original object for two main reasons:
    - It prevents the use of a repo with multiple filters at the same time. In
      particular when multiple threads are involved.
    - It makes scope of the filtering harder to control.

    This object behaves very closely to the original repository. All attribute
    operations are done on the original repository:
    - An access to `repoview.someattr` actually returns `repo.someattr`,
    - A write to `repoview.someattr` actually sets value of `repo.someattr`,
    - A deletion of `repoview.someattr` actually drops `someattr`
      from `repo.__dict__`.

    The only exception is the `changelog` property. It is overridden to return
    a (surface) copy of `repo.changelog` with some revisions filtered. The
    `filtername` attribute of the view control the revisions that need to be
    filtered.  (the fact the changelog is copied is an implementation detail).

    Unlike attributes, this object intercepts all method calls. This means that
    all methods are run on the `repoview` object with the filtered `changelog`
    property. For this purpose the simple `repoview` class must be mixed with
    the actual class of the repository. This ensures that the resulting
    `repoview` object have the very same methods than the repo object. This
    leads to the property below.

        repoview.method() --> repo.__class__.method(repoview)

    The inheritance has to be done dynamically because `repo` can be of any
    subclasses of `localrepo`. Eg: `bundlerepo` or `statichttprepo`.
    cCsPtj|d|ƒtj|d|ƒtj|ddƒtj|ddƒdS(Nt_unfilteredrepoRGt_clcachekeyt_clcache(tobjectt__setattr__R(tselfRRG((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyt__init__¨scCs|j}|j}t||jƒ}|j}t|ƒ|jƒt|ƒf}|dk	rÅ|j	}z.d|_	t|ƒ|jƒt|ƒf}Wd||_	X||j
ks¹||krÅd}qÅn|dkrtj|ƒ}||_	tj
|d|ƒtj
|d|ƒn|S(s_return a filtered version of the changeset

        this changelog must not be used for writingNRLRK((RJR	R,RGRLR<ttipthashRR
RKtcopyRMRN(ROtunfit
unfichangelogR
Rtnewkeyt	oldfiltertcurkey((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyR	¯s&			!		%
	cCs|jS(s&Return an unfiltered version of a repo(RJ(RO((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyRFÎscCs&||jkr|S|jƒj|ƒS(s)Return a filtered version of a repository(RGRFtfiltered(ROtname((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyRYÒscCst|j|ƒS(N(tgetattrRJ(ROtattr((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyt__getattr__ÙscCst|j||ƒS(N(tsetattrRJ(ROR\tvalue((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyRNÜscCst|j|ƒS(N(tdelattrRJ(ROR\((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyt__delattr__ßscCs
|jjS(N(RJtrequirements(RO((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyRbås(t__name__t
__module__t__doc__RPtpropertyR	RFRYR]RNRaRb(((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyRI…s!						(RSR-R8RR RRR!R'R6R;RARER,RMRI(((s6/usr/lib/python2.7/dist-packages/mercurial/repoview.pyt<module>	s 						

	

Copyright © 2017 || Recoded By Mr.Bumblebee