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/pager.pyc
ó
ÛXc@@sÊdZddlmZddlZddlZddlZddlZddlZddlm	Z	ddl
mZmZm
Z
mZmZdZd„Zd„Zd	„Zd
ddd
dddgZdS(s=browse command output with an external pager

To set the pager that should be used, set the application variable::

  [pager]
  pager = less -FRX

If no pager is set, the pager extensions uses the environment variable
$PAGER. If neither pager.pager, nor $PAGER is set, no pager is used.

You can disable the pager for certain commands by adding them to the
pager.ignore list::

  [pager]
  ignore = version, help, update

You can also enable the pager only for certain commands using
pager.attend. Below is the default list of commands to be paged::

  [pager]
  attend = annotate, cat, diff, export, glog, log, qdiff

Setting pager.attend to an empty value will cause all commands to be
paged.

If pager.attend is present, pager.ignore will be ignored.

Lastly, you can enable and disable paging for individual commands with
the attend-<command> option. This setting takes precedence over
existing attend and ignore options and defaults::

  [pager]
  attend-cat = false

To ignore global commands like :hg:`version` or :hg:`help`, you have
to specify them in your user configuration file.

To control whether the pager is used at all for an individual command,
you can use --pager=<value>::

  - use as needed: `auto`.
  - require the pager: `yes` or `on`.
  - suppress the pager: `no` or `off` (any unrecognized value
  will also work).

i(tabsolute_importN(t_(tcmdutiltcommandstdispatcht
extensionstutilsships-with-hg-corec@s4tj|dtdddtjdtjdtjdtjƒ‰ˆj	‰tj‰t
jtjjƒƒ‰t
jtjjƒƒ‰t
j
tjjƒdd	ƒˆ_	t_‰t
jˆjjƒtjjƒƒˆjtjƒrt
jˆjjƒtjjƒƒntj‡‡‡‡‡‡‡fd
†ƒ}dS(Ntshelltbufsizeiÿÿÿÿt	close_fdststdintstdouttstderrtwbic@s”tjtdƒr+tjtjtjƒnˆjjƒˆˆ_ˆt_	ˆjƒt
jˆtj	jƒƒt
jˆtj
jƒƒˆjƒdS(NtSIGINT(RtsafehasattrtsignalRtSIG_IGNR
tclosetfouttsysRtostdup2tfilenoRtwait((t	newstdoutt	oldstdoutt	olduifouttpagertstderrfdtstdoutfdtui(s//usr/lib/python2.7/dist-packages/hgext/pager.pyt	killpageres
		
(t
subprocesstPopentTrueRtclosefdstPIPERRRRRtdupRtfdopenRR
t_isattytatexittregister(RtpR ((RRRRRRRs//usr/lib/python2.7/dist-packages/hgext/pager.pyt	_runpagerTs		,"%c@sudtjks|jƒr dStj}dtjdg|ƒkrIdSd„‰‡fd†}tjd|ƒdS(Ns
--debuggertchgunixs--cmdservercS@sµ|jddtjjdƒƒ}t}tj|dƒ}|ddk}|sSnÌ|rbt}n½|sqt}n®|jddt	ƒ}	|jddƒ}
t
j|tj
ƒ\}}xi|D]a}d|}
|jd|
ƒrò|jd|
ƒ}Pn||	ks||
krº|	rºt}PqºqºWt|d|ƒ|r¢|jdd	|jƒdƒ|jdd
tdƒtjtdƒr’tjtjtjƒnt||ƒn|||||ƒS(NRtPAGERtautotattendtignores	attend-%stpageractiveRt	formattedtinteractivetSIGPIPE(tconfigRtenvirontgettFalseRt	parseboolR#t
configlisttattendedRtfindcmdRttablet
configbooltsetattrt	setconfigR3RRR5tSIG_DFLR,(torigRtoptionstcmdtcmdfuncR+tusepagertalwaysR/R0R1tcmdsRtvar((s//usr/lib/python2.7/dist-packages/hgext/pager.pytpagecmd}s<!		

c@stjtdˆƒdS(Nt_runcommand(RtwrapfunctionR(tloaded(RK(s//usr/lib/python2.7/dist-packages/hgext/pager.pytafterloaded¥stcolor(RtargvR3Rt_earlygetoptRRO(RRQRO((RKs//usr/lib/python2.7/dist-packages/hgext/pager.pytuisetupts
	(cC@s/tjjdddtdƒtdƒfƒdS(NtRR/s2when to paginate (boolean, always, auto, or never)tTYPE(Rt
globaloptstappendR(R((s//usr/lib/python2.7/dist-packages/hgext/pager.pytextsetup©s			tannotatetcattdifftexporttglogtlogtqdiff(t__doc__t
__future__RR)RRR!Rtmercurial.i18nRt	mercurialRRRRRt
testedwithR,RSRXR<(((s//usr/lib/python2.7/dist-packages/hgext/pager.pyt<module><s(	 	5