-=[ Mr. Bumblebee ]=-
_Indonesia_

Path : /usr/lib/python2.7/dist-packages/hgext/
File Upload :
Current File : //usr/lib/python2.7/dist-packages/hgext/pager.pyc

ó
Ì\,Tc@sädZddlZddlZddlZddlZddlZddlZddlZddlm	Z	m
Z
mZmZm
Z
ddlmZdZd„Zd„Zd„Zd	„Zd
„Zddd
ddddgZdS(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.

The --pager=... option can also be used to control when the pager is
used. Use a boolean value like yes, no, on, off, or use auto for
normal behavior.

iÿÿÿÿN(tcommandstdispatchtutilt
extensionstcmdutil(t_tinternalcCs€tjtdƒsLtj|dƒt_|jtjƒrHtjt_ndStjƒ\}}tj	ƒ}|dkrÛtj
|ƒtj|tjjƒƒ|jtjƒrÊtj|tjjƒƒntj
|ƒdStj|tj
jƒƒtj
|ƒtj
|ƒytjddd|gƒWnNtk
r{}|jtjkrutj|ƒ}tj|d|ƒq|‚nXdS(Ntforktwbis/bin/shs-c(Rtsafehasattrtostpopentsyststdoutt_isattytstderrtpipeRtclosetdup2tfilenotstdintexecvptOSErrorterrnotENOENTtshlextsplit(tuitptfdintfdouttpidtetargs((s//usr/lib/python2.7/dist-packages/hgext/pager.pyt
_pagerfork@s0



csêtj|dtdddtjdtjdtjdtjƒ‰t	j
tjjƒƒ‰t	j
tjjƒƒ‰t	jˆj
jƒtjjƒƒ|jtjƒrÈt	jˆj
jƒtjjƒƒntj‡‡‡fd†ƒ}dS(	Ntshelltbufsizeiÿÿÿÿt	close_fdsRR
Rcsxtjtdƒr+tjtjtjƒnˆjjƒtjˆt	j
jƒƒtjˆt	jjƒƒˆj
ƒdS(NtSIGINT(RR	tsignalR&tSIG_IGNRRR
RRR
RRtwait((tpagerRR
(s//usr/lib/python2.7/dist-packages/hgext/pager.pyt	killpagergs
(t
subprocesstPopentTrueRtclosefdstPIPERR
RR
tdupRRRRtatexittregister(RRR+((R*RR
s//usr/lib/python2.7/dist-packages/hgext/pager.pyt_pagersubprocess\s"%cCs0tjdkrt||ƒn
t||ƒdS(Nii(ii(Rtversion_infoR4R"(RR((s//usr/lib/python2.7/dist-packages/hgext/pager.pyt	_runpagerpscCs@dtjks|jƒr dSd„}tjtd|ƒdS(Ns
--debuggercSs¥|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ºW|r’|jdd|jƒdƒ|jdd	tdƒtjtd
ƒr‚tjtjtjƒnt||ƒn|||||ƒS(NR*tPAGERtautotattendtignores	attend-%sRt	formattedtinteractivetSIGPIPE(tconfigR
tenvirontgettFalseRt	parseboolR.t
configlisttattendedRtfindcmdRttablet
configboolt	setconfigR;R	R'R=tSIG_DFLR6(torigRtoptionstcmdtcmdfuncRtusepagertalwaysR8R9R:tcmdsRtvar((s//usr/lib/python2.7/dist-packages/hgext/pager.pytpagecmd}s:!		

t_runcommand(RtargvR;RtwrapfunctionR(RRR((s//usr/lib/python2.7/dist-packages/hgext/pager.pytuisetupys	#cCs/tjjdddtdƒtdƒfƒdS(NtR*R8s2when 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__R2RR
R'R,RRt	mercurialRRRRRtmercurial.i18nRt
testedwithR"R4R6RVR[RD(((s//usr/lib/python2.7/dist-packages/hgext/pager.pyt<module>8sT(					)	

Copyright © 2017 || Recoded By Mr.Bumblebee