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/churn.pyc
σ
ΫXc@@sΣdZddlmZddlZddlZddlZddlmZddlm	Z	m
Z
mZmZm
Z
mZiZe	jeƒZdZd„Zd„Zd	„Zed
ddged
ƒedƒfdddedƒedƒfdddedƒedƒfdddedƒedƒfdddedƒedƒfd d!eed"ƒfd#d$eed%ƒfdd&eed'ƒfdd(ded)ƒed*ƒfg	e
jed+ƒd,eƒd-„ƒZdS(.s6command to display statistics about repository historyi(tabsolute_importN(t_(tcmdutiltcommandstencodingtpatchtscmutiltutilsships-with-hg-corecC@stj||td|dtƒS(N(Rtchangeset_templatertFalsetNone(tuitrepottmpl((s//usr/lib/python2.7/dist-packages/hgext/churn.pyt
maketemplater#sc
C@sΗd	\}}tj||ƒ}djtj||jƒ|jƒ|ƒƒ}xo|jdƒD]^}	|	jdƒr|	jdƒr|d7}q[|	jdƒr[|	jdƒr[|d7}q[q[W||fS(
Nits
t+s+++ it-s--- (ii(Rt
matchfilestjoinRtdifftnodetsplitt
startswith(
RRtctx1tctx2tfnstaddedtremovedtfmatchRtl((s//usr/lib/python2.7/dist-packages/hgext/churn.pytchangedlines&s-
c@sˆjdƒr!‡fd†‰nBˆjdƒp<ˆjdƒ‰tˆˆˆƒ‰‡‡fd†‰idd6‰i‰t‰ˆjdƒr‘tjˆdƒ‰ntjˆd|ˆƒ}‡‡‡‡‡‡‡‡fd	†}x#tj	ˆ|ˆ|ƒD]	}qχqχWˆj
td
ƒdƒˆS(sCalculate statst
dateformatc@sI|jƒ\}}tjtjt|ƒ|ƒd Œ}|jˆdƒS(NiR (tdatetdatetimettimetgmtimetfloattstrftime(tctxttttzR!(topts(s//usr/lib/python2.7/dist-packages/hgext/churn.pytgetkey4s&toldtemplatettemplatec@s!ˆjƒˆj|ƒˆjƒS(N(t
pushbuffertshowt	popbuffer(R'(R
R(s//usr/lib/python2.7/dist-packages/hgext/churn.pyR+;s

itcountR!c	@sg|jƒ}ˆr-ˆ|jƒdƒr-dSˆ|ƒjƒ}ˆj||ƒ}ˆjdƒr‡ˆj|d
ƒdddfˆ|<nš|jƒ}t|ƒdkrÈjtdƒ|fƒdS|d}tˆˆ|||ƒ}gt	ˆj|dƒ|ƒD]\}}||^qˆ|<ˆdcd7<ˆj
tdƒˆddtˆƒdtd	ƒƒdS(Nit
changesetsis$revision %d is a merge, ignoring...
R1t	analyzingttotaltunitt	revisions(i(ii(trevR!tstriptgettparentstlentnoteRRtziptprogress(	R'RR7tkeyR:RtlinestrR(tamaptdfR+R*trateRtstateR(s//usr/lib/python2.7/dist-packages/hgext/churn.pytprepGs"'
<%R3N(R9RR	Rt	matchdateRtmatchR
RtwalkchangerevsR>R(RRRBtpatsR*tmRFR'((	RBRCR+R*RDRRER
Rs//usr/lib/python2.7/dist-packages/hgext/churn.pyt	countrate1s 
$tchurnRAR7s/count rate for the specified revision or revsettREVtdR!Rs+count rate for revisions matching date spectDATER(R,s)template to group changesets (DEPRECATED)tTEMPLATEtTR-s{author|email}stemplate to group changesetstfR s/strftime-compatible format for grouping by datetFORMATtcR2s"count rate by number of changesetststsorts$sort by key (default: sort by count)tdiffstats&display added/removed lines separatelytaliasessfile with email aliasestFILEs3hg churn [-d DATE] [-r REV] [--aliases FILE] [FILE]t	inferrepoc@sTd„‰i}|jdƒ}|rRtjj|jdƒƒrR|jdƒ}n|rόx‘t|dƒD]}yD|jd|kr‰dpŒddƒ\}}|jƒ||jƒ<Wqht	k
rτ|jƒ}|rhˆj
tdƒ|ƒqhqhqhXqhWntˆ||||Žj
ƒ}	|	s$dS|jd	ƒr@|	jƒn|	jd
d„ƒttd„|	Dƒƒƒprd
‰td„|	Dƒƒ‰ˆjƒ}
ˆjd|
ƒ|
ˆddd‰|jdƒrςˆd8‰‡‡‡‡fd†}nˆd8‰‡‡‡fd†}‡‡fd†‰x*|	D]"\}}
ˆj|||
ƒƒq*WdS(s”histogram of changes to the repository

    This command will display a histogram representing the number
    of changed lines or revisions, grouped according to the given
    template. The default template will group changes by author.
    The --dateformat option may be used to group the results by
    date instead.

    Statistics are based on the number of changed lines, or
    alternatively the number of matching revisions if the
    --changesets option is specified.

    Examples::

      # display count of changed lines for every committer
      hg churn -t "{author|email}"

      # display daily activity graph
      hg churn -f "%H" -s -c

      # display activity of developers by month
      hg churn -f "%Y-%m" -s -c

      # display count of lines changed in every year
      hg churn -f "%Y" -s

    It is possible to map alternate email addresses to a main address
    by providing a file using the following format::

      <alias email> = <actual email>

    Such a file may be specified with the --aliases option, otherwise
    a .hgchurn file will be looked for in the working directory root.
    Aliases will be split from the rightmost "=".
    cS@s|d|tj|ƒS(Nt (Rtcolwidth(RVR((s//usr/lib/python2.7/dist-packages/hgext/churn.pytpadœsRYs.hgchurnRAt=isskipping malformed alias: %s
NRWR?cS@st|dƒ|fS(Ni(tsum(tx((s//usr/lib/python2.7/dist-packages/hgext/churn.pyt<lambda>΅scs@s!|]\}}t|ƒVqdS(N(R`(t.0tktv((s//usr/lib/python2.7/dist-packages/hgext/churn.pys	<genexpr>Έsgπ?cs@s!|]\}}t|ƒVqdS(N(R;(RcRdRe((s//usr/lib/python2.7/dist-packages/hgext/churn.pys	<genexpr>Ήssassuming %i character terminal
iRXic@s_|\}}dˆ|ˆƒd||fˆjdˆ|ƒdƒˆjdˆ|ƒdƒfS(Ns
%s %15s %s%s
s+%d/-%dRsdiffstat.insertedRsdiffstat.deleted(tlabel(tnameRXRR(tcharnumtmaxnameR^R(s//usr/lib/python2.7/dist-packages/hgext/churn.pytformatΑs
ic@s0dˆ|ˆƒt|ƒdˆt|ƒƒfS(Ns
%s %6d %s
t*(R`(RgR1(RhRiR^(s//usr/lib/python2.7/dist-packages/hgext/churn.pyRjΛsc@stt|ˆˆƒƒS(N(tinttround(R1(tmaxcounttwidth(s//usr/lib/python2.7/dist-packages/hgext/churn.pyRhΟs(R9tostpathtexiststwjointopentrsplitR
R8t
ValueErrortwarnRRLtitemsRWR%tmaxt	termwidthtdebugtwrite(RRRJR*RBRYRtaliastactualRDtttywidthRjRgR1((RhRnRiR^RRos//usr/lib/python2.7/dist-packages/hgext/churn.pyRMfsD6	"*

"
	
(t__doc__t
__future__RR"RpR#tmercurial.i18nRt	mercurialRRRRRRtcmdtabletcommandt
testedwithRRRLR	twalkoptstTrueRM(((s//usr/lib/python2.7/dist-packages/hgext/churn.pyt<module>	s<.				5					!