-=[ Mr. Bumblebee ]=-
_Indonesia_
ó
Ì\,Tc @ sä d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l m Z m
Z
m Z m Z m
Z
d d l m Z d Z d „ Z d „ Z d „ Z d „ Z d
„ Z d d d
d d d d g Z d S( 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( t commandst dispatcht utilt
extensionst cmdutil( t _t internalc C s€ t j t d ƒ sL t j | d ƒ t _ | j t j ƒ rH t j t _ n d St j ƒ \ } } t j ƒ } | d k rÛ t j
| ƒ t j | t j j ƒ ƒ | j t j ƒ rÊ t j | t j j ƒ ƒ n t j
| ƒ d St j | t j
j ƒ ƒ t j
| ƒ t j
| ƒ y t j d d d | g ƒ WnN t k
r{} | j t j k rut j | ƒ } t j | d | ƒ q|‚ n Xd S( Nt forkt wbi s /bin/shs -c( R t safehasattrt ost popent syst stdoutt _isattyt stderrt pipeR t closet dup2t filenot stdint execvpt OSErrort errnot ENOENTt shlext split( t uit pt fdint fdoutt pidt et args( ( s/ /usr/lib/python2.7/dist-packages/hgext/pager.pyt
_pagerfork@ s0
c sê t j | d t d d d t j d t j d t j d t j ƒ‰ t j
t j j ƒ ƒ ‰ t j
t j j ƒ ƒ ‰ t j ˆ j
j ƒ t j j ƒ ƒ | j t j ƒ rÈ t j ˆ j
j ƒ t j j ƒ ƒ n t j ‡ ‡ ‡ f d † ƒ } d S( Nt shellt bufsizeiÿÿÿÿt close_fdsR R
R c sx t j t d ƒ r+ t j t j t j ƒ n ˆ j j ƒ t j ˆ t j
j ƒ ƒ t j ˆ t j j ƒ ƒ ˆ j
ƒ d S( Nt SIGINT( R R t signalR&