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/color.pyc

Xc@@sdZddlmZddlZddlmZddlmZmZm	Z	m
Z
mZmZ
mZiZejeZdZidd6dd	6d
d6dd
6dd6dd6dd6dd6dd6dd6dd6dd6dd6d d!6d"d#6d$d%6d&d'6d(d)6d*d+6d,d-6d.d/6d0d16Zd2Zd3ZyNddlZied4d5fd6ed6d5fd76ed8d5fd6ed9d5fd:6ed9d5fd6ed;d5fd;6ed!d5fd!6edd5fd6ed<d5fd=6ed>d5fd6eejd5fd	6eejd5fd6eejd5fd
6eejd5fd6eejd5fd6eejd5fd6eejd5fd6eejd5fd6a Wne!k
ria nXi5d?d@6d
dA6d
dB6d
dC6ddD6ddE6ddF6ddG6d
dH6ddI6dJdK6d
dL6ddM6ddN6ddO6ddP6dQdR6d?dS6dTdU6ddV6d
dW6d5dX6dYdZ6d5d[6d5d\6d5d]6dd^6d
d_6d?d`6dda6ddb6d5dc6ddd6dde6d
df6d5dg6ddh6d?di6dTdj6d?dk6ddl6dTdm6dndo6dTdp6ddq6ddr6dsdt6dJdu6dndv6d?dw6dxdy6d
dz6dJd{6a"d|Z#d}Z$d~Z%dZ&dZ'de
jfdYZ(dZ)dZ*edgddZ+ej,dkrdZ.n*ddl/Z/ddl0Z0e/j1j2Z3e/j4Z5dZ6de/j7fdYZ8de/j7fdYZ9de/j7fdYZ:dZ;dZ<dZ=d Z>dZ?dZ@dZAdZBdZCdZDdZEdZFidd6dd	6e?d6e>d
6e?e>Bd6e=d6e=e?Bd6e=e>Bd6e?e>Be=Bd6e@d6dd#6eCd%6eBd'6eCeBBd)6eAd+6eAeCBd-6eAeBBd/6eCeBBeABd16eDd6eFd6eEd6Z.eGe@eDeFeEgZHe3jIe;ZJeJdkseeJe6krndZ.nRe:ZKe3jLeJe/jMeKsdZ.n%eKjNZOe0jPde0jQe0jRBZSdZTdS(scolorize output from some commands

The color extension colorizes output from several Mercurial commands.
For example, the diff command shows additions in green and deletions
in red, while the status command shows modified files in magenta. Many
other commands have analogous colors. It is possible to customize
these colors.

Effects
-------

Other effects in addition to color, like bold and underlined text, are
also available. By default, the terminfo database is used to find the
terminal codes used to change color and effect.  If terminfo is not
available, then effects are rendered with the ECMA-48 SGR control
function (aka ANSI escape codes).

The available effects in terminfo mode are 'blink', 'bold', 'dim',
'inverse', 'invisible', 'italic', 'standout', and 'underline'; in
ECMA-48 mode, the options are 'bold', 'inverse', 'italic', and
'underline'.  How each is rendered depends on the terminal emulator.
Some may not be available for a given terminal type, and will be
silently ignored.

If the terminfo entry for your terminal is missing codes for an effect
or has the wrong codes, you can add or override those codes in your
configuration::

  [color]
  terminfo.dim = \E[2m

where '\E' is substituted with an escape character.

Labels
------

Text receives color effects depending on the labels that it has. Many
default Mercurial commands emit labelled text. You can also define
your own labels in templates using the label function, see :hg:`help
templates`. A single portion of text may have more than one label. In
that case, effects given to the last label will override any other
effects. This includes the special "none" effect, which nullifies
other effects.

Labels are normally invisible. In order to see these labels and their
position in the text, use the global --color=debug option. The same
anchor text may be associated to multiple labels, e.g.

  [log.changeset changeset.secret|changeset:   22611:6f0a53c8f587]

The following are the default effects for some default labels. Default
effects may be overridden from your configuration file::

  [color]
  status.modified = blue bold underline red_background
  status.added = green bold
  status.removed = red bold blue_background
  status.deleted = cyan bold underline
  status.unknown = magenta bold underline
  status.ignored = black bold

  # 'none' turns off all effects
  status.clean = none
  status.copied = none

  qseries.applied = blue bold underline
  qseries.unapplied = black bold
  qseries.missing = red bold

  diff.diffline = bold
  diff.extended = cyan bold
  diff.file_a = red bold
  diff.file_b = green bold
  diff.hunk = magenta
  diff.deleted = red
  diff.inserted = green
  diff.changed = white
  diff.tab =
  diff.trailingwhitespace = bold red_background

  # Blank so it inherits the style of the surrounding label
  changeset.public =
  changeset.draft =
  changeset.secret =

  resolve.unresolved = red bold
  resolve.resolved = green bold

  bookmarks.active = green

  branches.active = none
  branches.closed = black bold
  branches.current = green
  branches.inactive = none

  tags.normal = green
  tags.local = black bold

  rebase.rebased = blue
  rebase.remaining = red bold

  shelve.age = cyan
  shelve.newest = green bold
  shelve.name = blue bold

  histedit.remaining = red bold

Custom colors
-------------

Because there are only eight standard colors, this module allows you
to define color names for other color slots which might be available
for your terminal type, assuming terminfo mode.  For instance::

  color.brightblue = 12
  color.pink = 207
  color.orange = 202

to set 'brightblue' to color slot 12 (useful for 16 color terminals
that have brighter colors defined in the upper eight) and, 'pink' and
'orange' to colors in 256-color xterm's default color cube.  These
defined colors may then be used as any of the pre-defined eight,
including appending '_background' to set the background to that color.

Modes
-----

By default, the color extension will use ANSI mode (or win32 mode on
Windows) if it detects a terminal. To override auto mode (to enable
terminfo mode, for example), set the following configuration option::

  [color]
  mode = terminfo

Any value other than 'ansi', 'win32', 'terminfo', or 'auto' will
disable color.

Note that on some systems, terminfo mode may cause problems when using
color with the pager extension and less -R. less with the -R option
will only display ECMA-48 color codes, and terminfo mode may sometimes
emit codes that less doesn't understand. You can work around this by
either using ansi mode (or auto mode), or by using less -r (which will
pass through all terminal control codes, not just color control
codes).

On some systems (such as MSYS in Windows), the terminal may support
a different color mode than the pager (activated via the "pager"
extension). It is possible to define separate modes depending on whether
the pager is active::

  [color]
  mode = auto
  pagermode = ansi

If ``pagermode`` is not defined, the ``mode`` will be used.
i(tabsolute_importN(t_(tcmdutiltcommandstdispatcht
extensionstsubrepotuitutilsships-with-hg-coretnoneitblackitredi tgreeni!tyellowi"tbluei#tmagentai$tcyani%twhiteitboldititalicit	underlineitinverseitdimi(tblack_backgroundi)tred_backgroundi*tgreen_backgroundi+tyellow_backgroundi,tblue_backgroundi-tpurple_backgroundi.tcyan_backgroundi/twhite_backgroundcC@s;ts
dS|dkrdStjd|jdDtjd|jdDytjWntjk
r}iadSXxatjD]S\}\}}}|sqn|rtj|r|jd|t|=qqWtjdstjd	r7|dkr.|j	t
d
niandS(sDInitialize terminfo data and the terminal if we're in terminfo mode.Ntautotterminfocs@sC|]9\}}|jdr|dtt|dffVqdS(scolor.itN(t
startswithtFalsetint(t.0tkeytval((s//usr/lib/python2.7/dist-packages/hgext/color.pys	<genexpr>s	tcolorcs@sI|]?\}}|jdr|dtd|jddffVqdS(s	terminfo.i	R!s\EsN(R"tTruetreplace(R%R&R'((s//usr/lib/python2.7/dist-packages/hgext/color.pys	<genexpr>s	sno terminfo entry for %s
tsetaftsetabs>no terminfo entry for setab/setaf: reverting to ECMA-48 color
(RR (t_terminfo_paramstupdatetconfigitemstcursest	setuptermterrortitemsttigetstrtdebugtwarnR(RtmodeteR&tbtc((s//usr/lib/python2.7/dist-packages/hgext/color.pyt_terminfosetups." c@s|dkrdS|dk}|o/tj|}|rD|rDdS|pktjjddkokj}jdddtdt	rjddndkrtj
d	krtjjd}|rd
|kstrdqdqdnfd
}dkr\iatsL|dSt
jtnKdkrqian6dkrtts|dqndS|s|r|rSdS(NR5RtTERMtdumbR(R7tpageractivet	pagermodetnttxtermtansitwin32c@s6kr2jr2jtdndS(Ns(warning: failed to set color mode to %s
(tinteractiveR6R((R7trealmodeR(s//usr/lib/python2.7/dist-packages/hgext/color.pytmodewarnsR (Rt	parsebooltNonetostenvirontgett	formattedtconfigtgetattrR#tnamet
w32effectsR-t_effectsR.R;(RtcoloroptRtalwaysRLttermRF((R7RERs//usr/lib/python2.7/dist-packages/hgext/color.pyt
_modesetupsH*
				
tsgr0R!tsmsotstandouttsmultrevtreversetblinktinvist	invisibletsitmsred bolds
grep.matchsgrep.linenumbersgrep.revsgrep.changesgrep.seps
grep.filenames	grep.users	grep.datesbookmarks.activesbranches.actives
black boldsbranches.closedsbranches.currentsbranches.inactivesdiff.changedsdiff.deleteds
diff.difflines	cyan bolds
diff.extendedsdiff.file_as
green boldsdiff.file_bs	diff.hunks
diff.insertedsdiff.tabsbold red_backgroundsdiff.trailingwhitespaceschangeset.publicschangeset.draftschangeset.secretsdiffstat.deletedsdiffstat.insertedshistedit.remainings	ui.prompts
log.changesetspatchbomb.finalsummaryspatchbomb.fromspatchbomb.tospatchbomb.subjectspatchbomb.diffstatssrebase.rebasedsrebase.remainingsresolve.resolvedsresolve.unresolveds
shelve.ages
shelve.newests	blue boldsshelve.namesstatus.addedsstatus.cleans
status.copiedscyan bold underlinesstatus.deletedsstatus.ignoredsstatus.modifiedsstatus.removedsmagenta bold underlinesstatus.unknownstags.normals
tags.localcC@st}|jdr(t}|d }nyt|\}}}Wntk
rSdSX|rt|rd|Stj|Sn8|rtjtjd|Stjtjd|SdS(s%Helper function for render_effects().t_backgroundiR!R,R+N(R#tendswithR)R-tKeyErrorR0R4ttparm(teffecttbgtattrR'ttermcode((s//usr/lib/python2.7/dist-packages/hgext/color.pyt_effect_strs

cC@s|s
|Stsrgdg|jD]}tt|^q$}ddj|d}dttdd}n2djddg|jD}td}dj|||gS(s-Wrap text in commands to turn on each effect.R	s;tmR!cs@s|]}t|VqdS(N(Rh(R%Rd((s//usr/lib/python2.7/dist-packages/hgext/color.pys	<genexpr>s(R-tsplittstrRQtjoinRh(ttextteffectsR8tstarttstop((s//usr/lib/python2.7/dist-packages/hgext/color.pytrender_effectss0cC@s:x3tjD]%\}}tjt|diq
WdS(Nt
colortable(Rt_stylesR.RN(ROtext((s//usr/lib/python2.7/dist-packages/hgext/color.pyt	extstylesscC@sKt}tr"|tkr"t}n%|tks>|d tkrGt}n|S(s(Determine if the effect is valid or not.i(R#R-RQR)(Rdtgood((s//usr/lib/python2.7/dist-packages/hgext/color.pytvalideffects		cC@sx|jdD]\}}d|ks|jdr=qn|jd|}|rg}xG|D]?}t|r|j|qb|jtd||fqbWdj|t|<qqWdS(NR(t.scolor.s	terminfo.s:ignoring unknown color/effect %r (configured in color.%s)
t (scolor.s	terminfo.(	R/R"t
configlistRxtappendR6RRmRt(Rtstatust
cfgeffectsRwR8((s//usr/lib/python2.7/dist-packages/hgext/color.pytconfigstyless
tcoloruicB@s2eZdZdZdZdZdZRS(RBc@sjdkr(ttj||S|jddjr|jdtrjrjdj	fd|Dqjdj	|nwjdkrxe|D]"}t
|ttj|qWn8ttjg|D]}j|^q|SdS(NtlabelR!tpromptic3@s!|]}j|VqdS(N(R(R%ta(Rtself(s//usr/lib/python2.7/dist-packages/hgext/color.pys	<genexpr>sRC(t
_colormodeRHtsuperRtwriteRKt_buffersR#t_bufferapplylabelstextendt
win32printR(RtargstoptsR((RRs//usr/lib/python2.7/dist-packages/hgext/color.pyRs	*
#cO@s|jdkr(tt|j||S|jdd}|jrd|jddrd|j||S|jdkrxe|D]"}t|tt|j|qzWn8tt|jg|D]}|j	||^q|SdS(NRR!iiRC(
RRHRRt	write_errRKt
_bufferstatesRRR(RRRRR((s//usr/lib/python2.7/dist-packages/hgext/color.pyRs
#cC@sG|r?|r?|ddkr.d||d fSd||fSn|SdS(Nis
s[%s|%s]
s[%s|%s]((RtmsgR((s//usr/lib/python2.7/dist-packages/hgext/color.pyt	showlabels
cC@s|jdkr(tt|j||S|jdkrG|j||Sg}xX|jD]J}tj|d}|r|j	|qZt
|rZ|j	|qZqZWdj|}|rdjg|jdD]}t||^qS|S(NR5R!Rzs
(
RRHRRRRRkRtRKR|RxRmRr(RRRRotlts((s//usr/lib/python2.7/dist-packages/hgext/color.pyRs 	)(t__name__t
__module__RRRRR(((s//usr/lib/python2.7/dist-packages/hgext/color.pyRs
				cC@s|jrdSt|ts:|jft_t|_nd}dtdd}tjt	d|tjt
jd|dS(NcS@sUt||d}|t_|rB|dkrBtt|n|||||S(NR(R5(RURRRvR(torigtui_RtcmdtcmdfuncR7((s//usr/lib/python2.7/dist-packages/hgext/color.pytcolorcmds	
cS@sQ|jjr;t|r;|ddkr;|jddn||||||S(Nitdiffis--color(RRtlentinsert(RtgitsubRtenvtstreamtcwd((s//usr/lib/python2.7/dist-packages/hgext/color.pytcolorgit
s(t_runcommandt	_gitnodir(tplaint
isinstanceRt	__class__t	__bases__RHR#RtwrapfunctionRRt
gitsubrepo(RRR((s//usr/lib/python2.7/dist-packages/hgext/color.pytuisetups	cC@s/tjjdddtdtdfdS(NR!R(Rs9when to colorize (boolean, always, auto, never, or debug)tTYPE(Rt
globaloptsR|R(R((s//usr/lib/python2.7/dist-packages/hgext/color.pytextsetups			t
debugcolors
hg debugcolorcK@siaxtjD]}|t|<qWtrx`|jdD]L\}}|jdri|dt|<q=|jdr=|dt|<q=q=Wn|jd|j|jtdx1tj	D]#\}}|jd|d	|qWdS(
NR(scolor.is	terminfo.i	scolor mode: %s
savailable colors:
s%s
R(
RtRQtkeysR-R/R"RRRR3(RtrepoRRdtktvt	colornameR((s//usr/lib/python2.7/dist-packages/hgext/color.pyRsR@it_COORDcB@s&eZdejfdejfgZRS(tXtY(RRtctypestc_shortt_fields_(((s//usr/lib/python2.7/dist-packages/hgext/color.pyR8st_SMALL_RECTcB@s>eZdejfdejfdejfdejfgZRS(tLefttToptRighttBottom(RRRRR(((s//usr/lib/python2.7/dist-packages/hgext/color.pyR<st_CONSOLE_SCREEN_BUFFER_INFOcB@s;eZdefdefdefdefdefgZRS(tdwSizetdwCursorPositiontwAttributestsrWindowtdwMaximumWindowSize(RRRt_WORDRR(((s//usr/lib/python2.7/dist-packages/hgext/color.pyRBs
				IIiii@ii@iitbold_backgrounds\[([^m]*)m([^]*)(.*)cK@se|jdd}t}d}xh|jD]Z}tj|d}x?|jD]1}y|t||}WqStk
rqSXqSWq.W|jdsd|}ntjt	|}	zx|	rKx>|	j
djdD]$}
|
r|t|
|}qqWtj
t|||	j
d|tjt	|	j
d	}	qWWdtj
ttXdS(
NRR!cS@sT|dkrtS|tkr$||BS|dkr@|d@|d@BS|d@|d@BSdS(Niiipiii(torigattrtpassthrough(R'Rf((s//usr/lib/python2.7/dist-packages/hgext/color.pytmapcolorssiRiii(RKRRkRtRPRbR"tretmatchtansiretgroupR$t	_kernel32tSetConsoleTextAttributetstdout(RnRRRRfRRtstyleRdRjtsattr((s//usr/lib/python2.7/dist-packages/hgext/color.pyRs,	

	#(Ut__doc__t
__future__RRItmercurial.i18nRt	mercurialRRRRRRtuimodRtcmdtabletcommandt
testedwithRQR;RUR0R)R#tCOLOR_BLACKt	COLOR_REDtCOLOR_GREENtCOLOR_YELLOWt
COLOR_BLUEt
COLOR_MAGENTAt
COLOR_CYANtCOLOR_WHITER-tImportErrorRtRhRrRvRxRRRRRRORHRPRRtwindlltkernel32Rtc_ushortRt_INVALID_HANDLE_VALUEt	StructureRRRt_STD_OUTPUT_HANDLEt_STD_ERROR_HANDLEt_FOREGROUND_BLUEt_FOREGROUND_GREENt_FOREGROUND_REDt_FOREGROUND_INTENSITYt_BACKGROUND_BLUEt_BACKGROUND_GREENt_BACKGROUND_REDt_BACKGROUND_INTENSITYt_COMMON_LVB_REVERSE_VIDEOt_COMMON_LVB_UNDERSCOREtsetRtGetStdHandleRtcsbitGetConsoleScreenBufferInfotbyrefRRtcompilet	MULTILINEtDOTALLRR(((s//usr/lib/python2.7/dist-packages/hgext/color.pyt<module>sB4
&#	(	B



						>