tests/test-grep.t
changeset 29860 b842b1adfea2
parent 24064 c260887cdbcd
child 29864 33461139c31c
equal deleted inserted replaced
29859:f148bfa40489 29860:b842b1adfea2
   109   $ hg grep --all orange
   109   $ hg grep --all orange
   110   color:3:+:orange
   110   color:3:+:orange
   111   color:2:-:orange
   111   color:2:-:orange
   112   color:1:+:orange
   112   color:1:+:orange
   113 
   113 
       
   114 test substring match: '^' should only match at the beginning
       
   115 
       
   116   $ hg grep '^.' --config extensions.color= --color debug
       
   117   [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|b]lack
       
   118   [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|o]range
       
   119   [grep.filename|color][grep.sep|:][grep.rev|3][grep.sep|:][grep.match|b]lue
   114 
   120 
   115 match in last "line" without newline
   121 match in last "line" without newline
   116 
   122 
   117   $ $PYTHON -c 'fp = open("noeol", "wb"); fp.write("no infinite loop"); fp.close();'
   123   $ $PYTHON -c 'fp = open("noeol", "wb"); fp.write("no infinite loop"); fp.close();'
   118   $ hg ci -Amnoeol
   124   $ hg ci -Amnoeol