-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/bzrlib/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/bzrlib/status.pyc

σ
¦ξNc@@s-ddlmZddlZddlmZmZmZm	Z	m
Z
mZddl
jZddlmZmZeeeeed„Zddededeeeeejd„Zd„Zeed„Zd	„Zd
ejfd„ƒYZdefd
„ƒYZd„ZeƒZej dedƒdS(i(tabsolute_importN(tdeltathookstlogtosutilsttsorttrevision(tmuttertwarningc	C@s°|r:|j|||dtd|ƒ}tj||ƒnr|j|d|d|d|ƒ}g|jD]}
|j|
dƒse|
^qe|_|||d|	d|d|
ƒd	S(
sΤDisplay summary of changes.

    This compares two trees with regards to a list of files, and delegates 
    the display to underlying elements.

    For short output, it creates an iterator on all changes, and lets a given
    reporter display these changes.

    For stantard output, it creates a delta of the changes, and forwards it
    to a callback

    :param to_file: If set, write to this file (default stdout.)
    :param old: Start tree for the comparison
    :param end: End tree for the comparison
    :param specific_files: If set, a list of filenames whose status should be
        shown.  It is an error to give a filename that is not in the working
        tree, or in the working inventory or in the basis inventory.
    :param show_short_reporter: Reporter in charge of display for short output
    :param show_long_callback: Callback in charge of display for normal output
    :param short: If True, gives short SVN-style status lines.
    :param want_unchanged: Deprecated parameter. If set, includes unchanged
        files.
    :param show_ids: If set, includes each file's id.
    :param want_unversioned: If False, only shows versioned files.
    :param classify: Add special symbols to indicate file kind.
    trequire_versionedtwant_unversionedtwant_unchangedtspecific_filesitshow_idstshow_unchangedtclassifyN(titer_changestFalset
_mod_deltatreport_changestchanges_fromtunversionedt
is_ignored(tto_filetoldtnewRtshow_short_reportertshow_long_callbacktshortRR
R
RtchangesRR((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyR$s	/cC@sw|dk	r"tdtddƒn|dkr:tj}n|jƒz!t}|dkr–|jƒ|jjƒkrt	dƒn|}
|
j
ƒ}nΩt|ƒdkroy|dj|jƒ}Wn+t
jk
rο}t
jt|ƒƒ‚nXt|ƒdkrf|djdk	rfy |dj|jƒ}
t}Wqlt
jk
rb}t
jt|ƒƒ‚qlXqo|}
n|jƒ|
jƒzΙx:tdD].}|t||
||	|||d|ƒƒq‘Wt|||
ƒ\}}|	}tjd	|d
|
jd|
ƒ}t|||
|||d|d
|d|d|d|
ƒ|dk	rΞg|D]}|
j|ƒrM|^qM}t|ƒdkr|r|jdƒd}nd}x(|D]}|jd||fƒqͺWn|
jƒ}|dk	r|j|
|dtdtƒd}nt|ƒdkr4|r4|jdƒnx@|D]8}|rPd}nd}|jd|t|ƒfƒq;W|r”|r”|jdƒnx:|D]2}|r°d}nd}|jd||fƒq›W|rφ|rφt|
||d|ƒn|rt
j|ƒ‚nx:tdD].}|t||
||	|||d|ƒƒqWWd|j ƒ|
j ƒXWd|j ƒXdS(sZDisplay summary of changes.

    By default this compares the working tree to a previous revision.
    If the revision argument is given, summarizes changes between the
    working tree and another, or between two revisions.

    The result is written out as Unicode and to_file should be able
    to encode that.

    If showing the status of a working tree, extra information is included
    about unknown files, conflicts, and pending merges.

    :param show_unchanged: Deprecated parameter. If set, includes unchanged
        files.
    :param specific_files: If set, a list of filenames whose status should be
        shown.  It is an error to give a filename that is not in the working
        tree, or in the working inventory or in the basis inventory.
    :param show_ids: If set, includes each file's id.
    :param to_file: If set, write to this file (default stdout.)
    :param show_pending: If set, write pending merges.
    :param revision: If None, compare latest revision with working tree
        If not None, it must be a RevisionSpec list.
        If one revision, compare with working tree.
        If two revisions, show status between first and second.
    :param short: If True, gives short SVN-style status lines.
    :param verbose: If True, show all merged revisions, not just
        the merge tips
    :param versioned: If True, only shows versioned files.
    :param classify: Add special symbols to indicate file kind.
    :param show_long_callback: A callback: message = show_long_callback(to_file, delta, 
        show_ids, show_unchanged, indent, filter), only used with the long output
    sIshow_tree_status with show_unchanged has been deprecated since bzrlib 0.9t
stacklevelis-working tree is out of date, run 'bzr update'iit
pre_statusRtoutput_filetunversioned_filterRRRR
R
s	ignored:
t sI  s%s %s
t
ignore_missestrecursesconflicts:
sC  s
nonexistent:
sX  tverbosetpost_statusN(!tNonetwarntDeprecationWarningtsyststdoutt	lock_readtTruet
last_revisiontbranchRt
basis_treetlentas_treeterrorstNoSuchRevisiontBzrCommandErrortstrtspecRRtStatusHookParamst_filter_nonexistentRt_ChangeReporterRRtwritet	conflictstselect_conflictstunicodetshow_pending_mergestPathsDoNotExisttunlock(twtRRR
Rtshow_pendingRRR%t	versionedRRtnew_is_working_treeRRtethooktnonexistentsR
treportertspecifict
ignored_filestprefixtignored_fileR<tconflicttnonexistent((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pytshow_tree_statusVsš+

%
	

	%
	

	!

	
cC@syi}xT|D]L}||kr,g||<q
g||D]}||kr7|^q7||<q
Wtj||ƒ}|jƒS(sθGet an iterator which will return the revisions in merge sorted order.

    This will build up a list of all nodes, such that only nodes in the list
    are referenced. It then uses MergeSorter to return them in 'merge-sorted'
    order.

    :param revision_ids: A set of revision_ids
    :param parent_map: The parent information for each node. Revisions which
        are considered ghosts should not be present in the map.
    :return: iterator from MergeSorter.iter_topo_order()
    (RtMergeSortertiter_topo_order(ttip_revisiontrevision_idst
parent_maptparent_graphtrevision_idtptsorter((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyt_get_sorted_revisionsλs

 c@s|jƒ}t|ƒdkr"dStjƒ‰ˆdk	rGˆd‰n|r\d}d}nd}d}‡‡‡fd†}|d}|j}	|d	}
|sΖ|rΆˆjd
ƒqƈjdƒn|	jjƒ}|
g}t	j
ˆƒ‰x
|D]}
y|	jj|
gƒd	}Wn=tj
k
rVˆj|d|
d
ƒ|j|
ƒqτnX|||ƒ|spqτn|j|
|ƒ}|j|
ƒ|jtjƒy&td„|	jj|ƒDƒƒ}Wnstj
k
r:i}xZ|D]N}y|	jj|gƒd	}Wntj
k
r(d||<qεX|||<qεWnXt|
||	jj|ƒƒ}|jƒ\}}}}||
kr–td||
fƒ‚nx`|D]X\}}}}||}|dkrδˆj|d|d
ƒqn||||ƒqWqτWdS(s8Write out a display of pending merges in a working tree.iNisP   sP.   s  s    c@sUˆdkrˆ}nˆt|ƒ}ˆjd||d|ƒ}ˆj|dƒdS(NRLs
(R'R1t
log_stringR;(trevRLtwidthtlog_message(t
log_formattert
term_widthR(s1/usr/lib/python2.7/dist-packages/bzrlib/status.pytshow_log_messages
	ispending merges:
s8pending merge tips: (use -v to see all merge revisions)
s(ghost) s
cs@s|]}|j|fVqdS(N(RW(t.0R\((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pys	<genexpr>@ss;Somehow we misunderstood how iter_topo_order works %s != %s(tget_parent_idsR1Rtterminal_widthR'R/R;t
repositoryt	get_graphRtLineLogFormattert
get_revisionsR3R4tappendtfind_unique_ancestorstdiscardt
_mod_revisiont
NULL_REVISIONtdictRZtget_parent_maptnexttAssertionError(RRRR%tparentstfirst_prefixt
sub_prefixRatpendingR/R.tgraphtother_revisionstmergeR\tmerge_extrat	revisionsRWtrev_id_iteratortnumtfirsttdepthteomt	sub_merge((R_R`Rs1/usr/lib/python2.7/dist-packages/bzrlib/status.pyR?st
	
	
	



	
	
cC@sžtd|ƒ|s|gfS|j|ƒ}|j|ƒ}g|D]}|j|ƒsB|^qB}g|D]}||krj|^qj}t|ƒt|ƒfS(sπConvert orig_paths to two sorted lists and return them.

    The first is orig_paths paths minus the items in the second list,
    and the second list is paths that are not in either inventory or
    tree (they don't qualify if they exist in the tree's inventory, or
    if they exist in the tree but are not versioned.)

    If either of the two lists is empty, return it as an empty list.

    This can be used by operations such as bzr status that can accept
    unknown or ignored files.
    scheck paths: %r(Rtfilter_unversioned_filesthas_filenametsorted(t
orig_pathstold_treetnew_treetstpathROt	remaining((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyR9]s


(%tStatusHookscB@seZdZd„ZRS(sΖA dictionary mapping hook name to a list of callables for status hooks.

    e.g. ['post_status'] Is the list of items to be called when the
    status command has finished printing the status.
    cC@s@tjj|ddƒ|jddd
ƒ|jdddƒd	S(s‚Create the default hooks.

        These are all empty initially, because by default nothing should get
        notified.
        s
bzrlib.statusRR&sKCalled with argument StatusHookParams after Bazaar has displayed the status. StatusHookParams has the attributes (old_tree, new_tree, to_file, versioned, show_ids, short, verbose). The last four arguments correspond to the command line options specified by the user for the status command. to_file is the output stream for writing.iiRsGCalled with argument StatusHookParams before Bazaar displays the status. StatusHookParams has the attributes (old_tree, new_tree, to_file, versioned, show_ids, short, verbose). The last four arguments correspond to the command line options specified by the user for the status command. to_file is the output stream for writing.N(ii(ii(t
_mod_hookstHookst__init__tadd_hook(tself((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyRs		(t__name__t
__module__t__doc__R(((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyRŠxsR8cB@s,eZdZdd„Zd„Zd„ZRS(svObject holding parameters passed to post_status hooks.

    :ivar old_tree: Start tree (basis tree) for comparison.
    :ivar new_tree: Working tree.
    :ivar to_file: If set, write to this file.
    :ivar versioned: Show only versioned files.
    :ivar show_ids: Show internal object ids.
    :ivar short: Use short status indicators.
    :ivar verbose: Verbose flag.
    c		C@sL||_||_||_||_||_||_||_||_dS(sCreate a group of post_status hook parameters.

        :param old_tree: Start tree (basis tree) for comparison.
        :param new_tree: Working tree.
        :param to_file: If set, write to this file.
        :param versioned: Show only versioned files.
        :param show_ids: Show internal object ids.
        :param short: Use short status indicators.
        :param verbose: Verbose flag.
        :param specific_files: If set, a list of filenames whose status should be
            shown.  It is an error to give a filename that is not in the working
            tree, or in the working inventory or in the basis inventory.
        N(R…R†RRDR
RR%R(	RR…R†RRDR
RR%R((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyR€s							cC@s|j|jkS(N(t__dict__(Rtother((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyt__eq__Όsc
C@sAd|jj|j|j|j|j|j|j|j|j	f	S(Ns$<%s(%s, %s, %s, %s, %s, %s, %s, %s)>(
t	__class__RR…R†RRDR
RR%R(R((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyt__repr__ΏsN(RR‘R’R'RR•R—(((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyR8˜s
	cC@s«|jr
dSt|jddƒ}|dkr2dS|ƒ}|jƒ}|r§d}d}t|ƒdkrt|}n|}|jj|t|ƒƒ|jjdƒndS(s\post_status hook to display a summary of shelves.

    :param params: StatusHookParams.
    Ntget_shelf_managers%d shelf exists. s%d shelves exist. is%See "bzr shelve --list" for details.
(RtgetattrR†R'tactive_shelvesR1RR;(tparamsR˜tmanagertshelvestsingulartpluraltfmt((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyt_show_shelve_summaryΕs			R&s
bzr status(!t
__future__RR*tbzrlibRRRR‹RRRRRlt
bzrlib.errorsR3tbzrlib.traceRRRR-RR'treport_deltaRPRZR?R9RŒRŠtobjectR8R‘tinstall_named_hook(((s1/usr/lib/python2.7/dist-packages/bzrlib/status.pyt<module>s4./‹	X	 -		

Copyright © 2017 || Recoded By Mr.Bumblebee