3053 |
3053 |
3054 </body> |
3054 </body> |
3055 </html> |
3055 </html> |
3056 |
3056 |
3057 |
3057 |
|
3058 $ get-with-headers.py $LOCALIP:$HGPORT "help/pager" |
|
3059 200 Script output follows |
|
3060 |
|
3061 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> |
|
3062 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US"> |
|
3063 <head> |
|
3064 <link rel="icon" href="/static/hgicon.png" type="image/png" /> |
|
3065 <meta name="robots" content="index, nofollow" /> |
|
3066 <link rel="stylesheet" href="/static/style-paper.css" type="text/css" /> |
|
3067 <script type="text/javascript" src="/static/mercurial.js"></script> |
|
3068 |
|
3069 <title>Help: pager</title> |
|
3070 </head> |
|
3071 <body> |
|
3072 |
|
3073 <div class="container"> |
|
3074 <div class="menu"> |
|
3075 <div class="logo"> |
|
3076 <a href="https://mercurial-scm.org/"> |
|
3077 <img src="/static/hglogo.png" alt="mercurial" /></a> |
|
3078 </div> |
|
3079 <ul> |
|
3080 <li><a href="/shortlog">log</a></li> |
|
3081 <li><a href="/graph">graph</a></li> |
|
3082 <li><a href="/tags">tags</a></li> |
|
3083 <li><a href="/bookmarks">bookmarks</a></li> |
|
3084 <li><a href="/branches">branches</a></li> |
|
3085 </ul> |
|
3086 <ul> |
|
3087 <li class="active"><a href="/help">help</a></li> |
|
3088 </ul> |
|
3089 </div> |
|
3090 |
|
3091 <div class="main"> |
|
3092 <h2 class="breadcrumb"><a href="/">Mercurial</a> </h2> |
|
3093 <h3>Help: pager</h3> |
|
3094 |
|
3095 <form class="search" action="/log"> |
|
3096 |
|
3097 <p><input name="rev" id="search1" type="text" size="30" value="" /></p> |
|
3098 <div id="hint">Find changesets by keywords (author, files, the commit message), revision |
|
3099 number or hash, or <a href="/help/revsets">revset expression</a>.</div> |
|
3100 </form> |
|
3101 <div id="doc"> |
|
3102 <h1>Pager Support</h1> |
|
3103 <p> |
|
3104 Some Mercurial commands can produce a lot of output, and Mercurial will |
|
3105 attempt to use a pager to make those commands more pleasant. |
|
3106 </p> |
|
3107 <p> |
|
3108 To set the pager that should be used, set the application variable: |
|
3109 </p> |
|
3110 <pre> |
|
3111 [pager] |
|
3112 pager = less -FRX |
|
3113 </pre> |
|
3114 <p> |
|
3115 If no pager is set in the user or repository configuration, Mercurial uses the |
|
3116 environment variable $PAGER. If $PAGER is not set, pager.pager from the default |
|
3117 or system configuration is used. If none of these are set, a default pager will |
|
3118 be used, typically 'less' on Unix and 'more' on Windows. |
|
3119 </p> |
|
3120 <p> |
|
3121 You can disable the pager for certain commands by adding them to the |
|
3122 pager.ignore list: |
|
3123 </p> |
|
3124 <pre> |
|
3125 [pager] |
|
3126 ignore = version, help, update |
|
3127 </pre> |
|
3128 <p> |
|
3129 To ignore global commands like 'hg version' or 'hg help', you have |
|
3130 to specify them in your user configuration file. |
|
3131 </p> |
|
3132 <p> |
|
3133 To control whether the pager is used at all for an individual command, |
|
3134 you can use --pager=<value>: |
|
3135 </p> |
|
3136 <ul> |
|
3137 <li> use as needed: 'auto'. |
|
3138 <li> require the pager: 'yes' or 'on'. |
|
3139 <li> suppress the pager: 'no' or 'off' (any unrecognized value will also work). |
|
3140 </ul> |
|
3141 <p> |
|
3142 To globally turn off all attempts to use a pager, set: |
|
3143 </p> |
|
3144 <pre> |
|
3145 [ui] |
|
3146 paginate = never |
|
3147 </pre> |
|
3148 <p> |
|
3149 which will prevent the pager from running. |
|
3150 </p> |
|
3151 |
|
3152 </div> |
|
3153 </div> |
|
3154 </div> |
|
3155 |
|
3156 |
|
3157 |
|
3158 </body> |
|
3159 </html> |
|
3160 |
|
3161 |
3058 Sub-topic indexes rendered properly |
3162 Sub-topic indexes rendered properly |
3059 |
3163 |
3060 $ get-with-headers.py $LOCALIP:$HGPORT "help/internals" |
3164 $ get-with-headers.py $LOCALIP:$HGPORT "help/internals" |
3061 200 Script output follows |
3165 200 Script output follows |
3062 |
3166 |