tests/test-pager.t
changeset 48185 2f2107c01dee
parent 47807 bc74cb9a8e40
child 48256 56d037d07395
equal deleted inserted replaced
48184:8fae2cc6ee86 48185:2f2107c01dee
   217   summary:     modify a 8
   217   summary:     modify a 8
   218   
   218   
   219 #endif
   219 #endif
   220 
   220 
   221 A complicated pager command gets worse behavior. Bonus points if you can
   221 A complicated pager command gets worse behavior. Bonus points if you can
   222 improve this. Windows apparently does this better, but only sometimes?
   222 improve this.
   223 #if windows
       
   224   $ hg log --limit 3 \
   223   $ hg log --limit 3 \
   225   >   --config pager.pager='this-command-better-never-exist --seriously' \
   224   >   --config pager.pager='this-command-better-never-exist --seriously' \
   226   >  2>/dev/null || true
   225   >  2>/dev/null || true
   227   \x1b[0;33mchangeset:   10:46106edeeb38\x1b[0m (esc) (?)
   226   \x1b[0;33mchangeset:   10:46106edeeb38\x1b[0m (esc) (?)
   228   tag:         tip (?)
   227   tag:         tip (?)
   238   \x1b[0;33mchangeset:   8:cff05a6312fe\x1b[0m (esc) (?)
   237   \x1b[0;33mchangeset:   8:cff05a6312fe\x1b[0m (esc) (?)
   239   user:        test (?)
   238   user:        test (?)
   240   date:        Thu Jan 01 00:00:00 1970 +0000 (?)
   239   date:        Thu Jan 01 00:00:00 1970 +0000 (?)
   241   summary:     modify a 8 (?)
   240   summary:     modify a 8 (?)
   242    (?)
   241    (?)
   243 #else
       
   244   $ hg log --limit 3 \
       
   245   >   --config pager.pager='this-command-better-never-exist --seriously' \
       
   246   >  2>/dev/null || true
       
   247 #endif
       
   248 
   242 
   249 Pager works with shell aliases.
   243 Pager works with shell aliases.
   250 
   244 
   251   $ cat >> $HGRCPATH <<EOF
   245   $ cat >> $HGRCPATH <<EOF
   252   > [alias]
   246   > [alias]