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/extdiff.pyc
ó
ÛXc@@sÑdZddlmZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZddl
mZmZmZmZmZmZmZiZejeƒZdZd„Zd	„Zd
dge	dƒe	d
ƒfddge	dƒe	dƒfddde	dƒe	dƒfddde	dƒfgejejZedddde	dƒe	dƒfgee	dƒdeƒd„ƒZd e fd!„ƒYZ!d"„Z"e!gZ#dS(#sócommand to allow external programs to compare revisions

The extdiff Mercurial extension allows you to use external programs
to compare revisions, or revision with working directory. The external
diff programs are called with a configurable set of options and two
non-option arguments: paths to directories containing snapshots of
files to compare.

The extdiff extension also allows you to configure new diff commands, so
you do not need to type :hg:`extdiff -p kdiff3` always. ::

  [extdiff]
  # add new command that runs GNU diff(1) in 'context diff' mode
  cdiff = gdiff -Nprc5
  ## or the old way:
  #cmd.cdiff = gdiff
  #opts.cdiff = -Nprc5

  # add new command called meld, runs meld (no need to name twice).  If
  # the meld executable is not available, the meld tool in [merge-tools]
  # will be used, if available
  meld =

  # add new command called vimdiff, runs gvimdiff with DirDiff plugin
  # (see http://www.vim.org/scripts/script.php?script_id=102) Non
  # English user, be sure to put "let g:DirDiffDynamicDiffText = 1" in
  # your .vimrc
  vimdiff = gvim -f "+next" \
            "+execute 'DirDiff' fnameescape(argv(0)) fnameescape(argv(1))"

Tool arguments can include variables that are expanded at runtime::

  $parent1, $plabel1 - filename, descriptive label of first parent
  $child,   $clabel  - filename, descriptive label of child revision
  $parent2, $plabel2 - filename, descriptive label of second parent
  $root              - repository root
  $parent is an alias for $parent1.

The extdiff extension will look in your [diff-tools] and [merge-tools]
sections for diff tool arguments, when none are specified in [extdiff].

::

  [extdiff]
  kdiff3 =

  [diff-tools]
  kdiff3.diffargs=--L1 '$plabel1' --L2 '$clabel' $parent $child

You can use -I/-X and list of file or directory names like normal
:hg:`diff` command. The extdiff extension makes snapshots of only
needed files, so running the external diff program will actually be
pretty fast (at least faster than having to compare the entire tree).
i(tabsolute_importN(t_(tnullidtshort(tarchivaltcmdutiltcommandsterrort	filemergetscmutiltutilsships-with-hg-corec	C@s©tjj|jƒ}|dkr*d}n|dk	rOd|t|ƒf}ntjj||ƒ}tj|ƒg}|dk	r¯|jt	dƒt
|ƒt|ƒfƒn|jt	dƒt
|ƒƒ|rŸ|jjddt
ƒtj|||dd	tj||ƒd
|ƒx†t|ƒD]u}	tj|	ƒ}
|jd|
ƒ|dkr#tjj||
ƒ}|j||j|	ƒtj|ƒjfƒq#q#Wn||fS(
sŸsnapshot files as of some revision
    if not using snapshot, -I/-X does not work and recursive diff
    in tools like kdiff3 and meld displays too many files.ttroots%s.%ss(making snapshot of %d files from rev %s
s3making snapshot of %d files from working directory
tuitarchivemetatfilestmatchfntsubreposs  %s
N(tostpathtbasenameRtNoneRtjointmkdirtnoteRtlenR
t	setconfigtFalseRtarchiveR	t
matchfilestsortedR
tpconverttappendtwjointlstattst_mtime(R
trepoRtnodettmproottlistsubrepostdirnametbaset
fns_and_mtimetfntwfntdest((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pytsnapshot]s4	
 c*@sS|jdƒ}|jdƒ}d|k‰|rT|rTtdƒ}tj|ƒ‚nr|rtj||d"ƒjƒ}|jj	|ƒ\}	}
n6tj
||ƒ\}	}|sÀ|jjƒ}
nt
}
ˆrä|
t
krät‰qän|jdƒ}tj||||ƒ}|jdƒr`|r9tjtdƒƒ‚n|d"krtjtdƒƒ‚qn²tt|j|	||d	|ƒd
 ƒ\}
}}ˆrËtt|j|
||d	|ƒd
 ƒ\}}}ntƒtƒtƒ}}}|
|B|B|B}||B|B}|sdStjdd
ƒ}z|jdƒsZ|
|B||B|B}t||||	||ƒd}d||	jƒ}ˆrÑ||B|
|B|B}t||||
||ƒd}d||
jƒ}nd"}d}g}d}d}|r+t||||||ƒd}d||jƒ}nEt|ƒdkrat|||d"||ƒ\}}nd}|j}|} |}!|}"t|ƒdkrtj|jƒƒ}#tjj|||#ƒ}|#|} tjj|ƒsétj }nˆr2tjj|||#ƒ}|#|}!tjj|ƒs2tj }q2ntjj|||#ƒ}|#|}"qn±d}$t!j"|||	jƒ||jƒgd|j#j$||$ƒd|ƒt!j%||$|	ƒ} t!j%||$|ƒ}"|j#j$|| ƒ}|j#j$||"ƒ}d"}d"}!g}i|d6|d6|d6| d6|!d6|"d6|d6|jd6‰‡‡fd†}%d}&ˆr‹t&j'|&|ƒr‹|d7}nt&j(|&|%|ƒ}|j)d||fƒ|j*|d |ƒxY|D]Q\}'}(})tj+|'ƒj,|)krÑ|j)d!|(|'fƒtj-|'|(ƒqÑqÑWdSWd"|j.td#ƒƒt/j0|ƒXd"S($s
Do the actual diff:

    - copy to a temp structure if diffing 2 internal revisions
    - copy to a temp structure if diffing working revision with
      another one and more than 1 file is changed
    - just invoke the diff for a single file in the working dir
    trevtchanges$parent2s2cannot specify --rev and --change at the same timeRtpatchs&--patch cannot be used with --subreposs--patch requires two revisionsR'iitprefixsextdiff.s@%dRishg-%h.patchttemplatetmatchtparenttparent1tparent2tplabel1tplabel2tclabeltchildRc@sJ|jdƒ}|jdƒ}ˆr5|dkr5|S|tjˆ|ƒS(NiiR7(tgroupR
t
shellquote(R4tpretkey(tdo3waytreplace(s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pytquotes
sJ(['"]?)([^\s'"$]*)\$(parent2|parent1?|child|plabel1|plabel2|clabel|root)\1s $parent1 $childsrunning %r in %s
tcwds6file changed while diffing. Overwriting: %s (src: %s)
Nscleaning up temp directory
(1tgetRRtAbortR	t	revsingleRR%t	changelogtparentstrevpairtdirstatetp2RRR4tmaptsettstatusttempfiletmkdtempR.R/RRR
t	localpathtpopRRRtisfiletdevnullRtexporttvfstreljointmakefilenametretsearchtsubtdebugtsystemR"R#tcopyfileRtshutiltrmtree(*R
R$tcmdlinetpatstoptstrevsR0tmsgtnode2tnode1atnode1bRtmatchertmod_atadd_atrem_atmod_btadd_btrem_btmodaddtcommonR&tdir1a_filestdir1atrev1atdir1b_filestdir1btrev1bR*tdir2roottrev2tdir2tlabel1atlabel1btlabel2tcommon_fileR3RBtregextcopy_fnt
working_fntmtime((R@RAs1/usr/lib/python2.7/dist-packages/hgext/extdiff.pytdodiffƒsÒ	

	

)

	totoptions!pass option to comparison programtOPTtrR/trevisiontREVtcR0Rschange made by revisionR1s!compare patches for two revisionstextdifftptprogramscomparison program to runtCMDshg extdiff [OPT]... [FILE]...t	inferrepocO@st|jdƒ}|jdƒ}|s<d}|p6dg}ndjttj|g|ƒƒ}t|||||ƒS(suse external program to diff repository (or selected files)

    Show differences between revisions for the specified files, using
    an external program. The default program used is diff, with
    default options "-Npru".

    To select a different program, use the -p/--program option. The
    program will be passed the names of two directories to compare. To
    pass additional options to the program, use -o/--option. These
    will be passed before the names of the directories to compare.

    When two revision arguments are given, then changes are shown
    between those revisions. If only one revision is specified then
    that revision is compared to the working directory, and, when no
    revisions are specified, the working directory files are compared
    to its parent.RR…tdiffs-Nprut (RDRRLR
R=Rƒ(R
R$RbRcRR…Ra((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pyR‹)s"tsavedcmdcB@s eZdZd„Zd„ZRS(sÚuse external program to diff repository (or selected files)

    Show differences between revisions for the specified files, using
    the following program::

        %(path)s

    When two revision arguments are given, then changes are shown
    between those revisions. If only one revision is specified then
    that revision is compared to the working directory, and, when no
    revisions are specified, the working directory files are compared
    to its parent.
    cC@s<|jdƒ}|jitj|ƒd6|_||_dS(Ns
string-escapeR(tencodet__doc__R
tuireprt_cmdline(tselfRRatdocpath((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pyt__init__Vs cO@sOdjttj|dƒƒ}|r2d|}nt|||j|||ƒS(NR‘R…(RRLR
R=RƒR–(R—R
R$RbRctoptions((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pyt__call__]s
(t__name__t
__module__R”R™R›(((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pyR’Gs
	cC@sÓxÌ|jdƒD]»\}}tj|ƒ}|jdƒrÅ|d}|sƒtj|ƒ}|dkrƒtj||ƒpz|}qƒn|jdd|dƒ}tj	|ƒ}|rO|d|7}qOnŠ|jdƒrÚqnu|r|}t
tj|ƒƒdk}nKtj|ƒ}|dkr:tj||ƒp4|}ntj	|ƒ}t
}|s›|jd|d	ƒp~|jd
|d	ƒ}|r›|d|7}q›nt|ttdƒ|dtƒt||ƒƒqWdS(
NR‹scmd.isopts.RR‘is
diff-toolss	.diffargssmerge-toolsshg %s [OPTION]... [FILE]...R(tconfigitemsR
t
expandpatht
startswithtfindexeRRtfindexternaltooltconfigR=RtshlextsplitRtcommandtextdiffoptsRtTrueR’(R
tcmdRtdiffoptsRatargs((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pytuisetupcs:
($R”t
__future__RRRYR¤R_ROtmercurial.i18nRtmercurial.nodeRRt	mercurialRRRRRR	R
tcmdtableR¦t
testedwithR.RƒRtwalkoptstsubrepooptsR§R¨R‹tobjectR’R¬t
i18nfunctions(((s1/usr/lib/python2.7/dist-packages/hgext/extdiff.pyt<module>=s.4
	&	¤ƒ!	%