tests/test-pager-legacy.t
branchstable
changeset 34918 274811627808
parent 33097 fce4ed2912bb
child 38362 e53879421ecd
equal deleted inserted replaced
34917:ee9243715c59 34918:274811627808
   192   $ hg echoa
   192   $ hg echoa
   193   a
   193   a
   194   $ hg --config pager.attend-echoa=yes echoa
   194   $ hg --config pager.attend-echoa=yes echoa
   195   paged! 'a\n'
   195   paged! 'a\n'
   196 
   196 
       
   197 Pager attributes should be copied to mq repo. Otherwise pager would be started
       
   198 twice and color mode would be lost.
       
   199 
       
   200   $ cat >> $HGRCPATH <<EOF
       
   201   > [extensions]
       
   202   > mq =
       
   203   > EOF
       
   204   $ hg init --mq
       
   205   $ hg qnew foo.patch
       
   206   $ hg qpop
       
   207   popping foo.patch
       
   208   patch queue now empty
       
   209   $ hg ci --mq -m 'commit patches'
       
   210   $ hg log --mq --debug
       
   211   starting pager for command 'extension-via-attend-log'
       
   212   paged! '\x1b[0;33mchangeset:   0:6cc2ded15503e368aaf76b6cc3d12f320c9e3b87\x1b[0m\n'
       
   213   paged! 'tag:         tip\n'
       
   214   paged! 'phase:       draft\n'
       
   215   paged! 'parent:      -1:0000000000000000000000000000000000000000\n'
       
   216   paged! 'parent:      -1:0000000000000000000000000000000000000000\n'
       
   217   paged! 'manifest:    0:4980de1ae1b612014d5bcfa9507da84ce8891daa\n'
       
   218   paged! 'user:        test\n'
       
   219   paged! 'date:        Thu Jan 01 00:00:00 1970 +0000\n'
       
   220   paged! 'files+:      .hgignore foo.patch series\n'
       
   221   paged! 'extra:       branch=default\n'
       
   222   paged! 'description:\n'
       
   223   paged! 'commit patches\n'
       
   224   paged! '\n'
       
   225   paged! '\n'
       
   226 
   197 Pager works with hg aliases including environment variables.
   227 Pager works with hg aliases including environment variables.
   198 
   228 
   199   $ cat >> $HGRCPATH <<'EOF'
   229   $ cat >> $HGRCPATH <<'EOF'
   200   > [alias]
   230   > [alias]
   201   > printa = log -T "$A\n" -r 0
   231   > printa = log -T "$A\n" -r 0