tests/test-command-template.t
changeset 25006 517763f87141
parent 25005 5ddbb024c2e9
child 25007 7c324f65e4ef
equal deleted inserted replaced
25005:5ddbb024c2e9 25006:517763f87141
   990 
   990 
   991 Error if no style:
   991 Error if no style:
   992 
   992 
   993   $ hg log --style notexist
   993   $ hg log --style notexist
   994   abort: style 'notexist' not found
   994   abort: style 'notexist' not found
   995   (available styles: bisect, changelog, compact, default, phases, xml)
   995   (available styles: bisect, changelog, compact, default, phases, status, xml)
   996   [255]
   996   [255]
   997 
   997 
   998   $ hg log -T list
   998   $ hg log -T list
   999   available styles: bisect, changelog, compact, default, phases, xml
   999   available styles: bisect, changelog, compact, default, phases, status, xml
  1000   abort: specify a template
  1000   abort: specify a template
  1001   [255]
  1001   [255]
  1002 
  1002 
  1003 Error if style missing key:
  1003 Error if style missing key:
  1004 
  1004 
  2011   $ hg add b
  2011   $ hg add b
  2012   $ hg mv fourth fifth
  2012   $ hg mv fourth fifth
  2013   $ hg rm a
  2013   $ hg rm a
  2014   $ hg ci -m "Modify, add, remove, rename"
  2014   $ hg ci -m "Modify, add, remove, rename"
  2015 
  2015 
       
  2016 Check the status template
       
  2017 
       
  2018   $ cat <<EOF >> $HGRCPATH
       
  2019   > [extensions]
       
  2020   > color=
       
  2021   > EOF
       
  2022 
       
  2023   $ hg log -T status -r 10
       
  2024   changeset:   10:0f9759ec227a
       
  2025   tag:         tip
       
  2026   user:        test
       
  2027   date:        Thu Jan 01 00:00:00 1970 +0000
       
  2028   summary:     Modify, add, remove, rename
       
  2029   files:
       
  2030   M third
       
  2031   A b
       
  2032   A fifth
       
  2033   R a
       
  2034   R fourth
       
  2035   
       
  2036   $ hg log -T status -C -r 10
       
  2037   changeset:   10:0f9759ec227a
       
  2038   tag:         tip
       
  2039   user:        test
       
  2040   date:        Thu Jan 01 00:00:00 1970 +0000
       
  2041   summary:     Modify, add, remove, rename
       
  2042   files:
       
  2043   M third
       
  2044   A b
       
  2045   A fifth
       
  2046     fourth
       
  2047   R a
       
  2048   R fourth
       
  2049   
       
  2050   $ hg log -T status -C -r 10 -v
       
  2051   changeset:   10:0f9759ec227a
       
  2052   tag:         tip
       
  2053   user:        test
       
  2054   date:        Thu Jan 01 00:00:00 1970 +0000
       
  2055   description:
       
  2056   Modify, add, remove, rename
       
  2057   
       
  2058   files:
       
  2059   M third
       
  2060   A b
       
  2061   A fifth
       
  2062     fourth
       
  2063   R a
       
  2064   R fourth
       
  2065   
       
  2066   $ hg log -T status -C -r 10 --debug
       
  2067   changeset:   10:0f9759ec227a4859c2014a345cd8a859022b7c6c
       
  2068   tag:         tip
       
  2069   phase:       secret
       
  2070   parent:      9:bf9dfba36635106d6a73ccc01e28b762da60e066
       
  2071   parent:      -1:0000000000000000000000000000000000000000
       
  2072   manifest:    8:89dd546f2de0a9d6d664f58d86097eb97baba567
       
  2073   user:        test
       
  2074   date:        Thu Jan 01 00:00:00 1970 +0000
       
  2075   extra:       branch=default
       
  2076   description:
       
  2077   Modify, add, remove, rename
       
  2078   
       
  2079   files:
       
  2080   M third
       
  2081   A b
       
  2082   A fifth
       
  2083     fourth
       
  2084   R a
       
  2085   R fourth
       
  2086   
       
  2087   $ hg log -T status -C -r 10 --quiet
       
  2088   10:0f9759ec227a
       
  2089   $ hg --color=debug log -T status -r 10
       
  2090   [log.changeset changeset.secret|changeset:   10:0f9759ec227a]
       
  2091   [log.tag|tag:         tip]
       
  2092   [log.user|user:        test]
       
  2093   [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
       
  2094   [log.summary|summary:     Modify, add, remove, rename]
       
  2095   [ui.note log.files|files:]
       
  2096   [status.modified|M third]
       
  2097   [status.added|A b]
       
  2098   [status.added|A fifth]
       
  2099   [status.removed|R a]
       
  2100   [status.removed|R fourth]
       
  2101   
       
  2102   $ hg --color=debug log -T status -C -r 10
       
  2103   [log.changeset changeset.secret|changeset:   10:0f9759ec227a]
       
  2104   [log.tag|tag:         tip]
       
  2105   [log.user|user:        test]
       
  2106   [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
       
  2107   [log.summary|summary:     Modify, add, remove, rename]
       
  2108   [ui.note log.files|files:]
       
  2109   [status.modified|M third]
       
  2110   [status.added|A b]
       
  2111   [status.added|A fifth]
       
  2112   [status.copied|  fourth]
       
  2113   [status.removed|R a]
       
  2114   [status.removed|R fourth]
       
  2115   
       
  2116   $ hg --color=debug log -T status -C -r 10 -v
       
  2117   [log.changeset changeset.secret|changeset:   10:0f9759ec227a]
       
  2118   [log.tag|tag:         tip]
       
  2119   [log.user|user:        test]
       
  2120   [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
       
  2121   [ui.note log.description|description:]
       
  2122   [ui.note log.description|Modify, add, remove, rename]
       
  2123   
       
  2124   [ui.note log.files|files:]
       
  2125   [status.modified|M third]
       
  2126   [status.added|A b]
       
  2127   [status.added|A fifth]
       
  2128   [status.copied|  fourth]
       
  2129   [status.removed|R a]
       
  2130   [status.removed|R fourth]
       
  2131   
       
  2132   $ hg --color=debug log -T status -C -r 10 --debug
       
  2133   [log.changeset changeset.secret|changeset:   10:0f9759ec227a4859c2014a345cd8a859022b7c6c]
       
  2134   [log.tag|tag:         tip]
       
  2135   [log.phase|phase:       secret]
       
  2136   [log.parent changeset.secret|parent:      9:bf9dfba36635106d6a73ccc01e28b762da60e066]
       
  2137   [log.parent changeset.public|parent:      -1:0000000000000000000000000000000000000000]
       
  2138   [ui.debug log.manifest|manifest:    8:89dd546f2de0a9d6d664f58d86097eb97baba567]
       
  2139   [log.user|user:        test]
       
  2140   [log.date|date:        Thu Jan 01 00:00:00 1970 +0000]
       
  2141   [ui.debug log.extra|extra:       branch=default]
       
  2142   [ui.note log.description|description:]
       
  2143   [ui.note log.description|Modify, add, remove, rename]
       
  2144   
       
  2145   [ui.note log.files|files:]
       
  2146   [status.modified|M third]
       
  2147   [status.added|A b]
       
  2148   [status.added|A fifth]
       
  2149   [status.copied|  fourth]
       
  2150   [status.removed|R a]
       
  2151   [status.removed|R fourth]
       
  2152   
       
  2153   $ hg --color=debug log -T status -C -r 10 --quiet
       
  2154   [log.node|10:0f9759ec227a]
       
  2155 
       
  2156 
  2016 Error on syntax:
  2157 Error on syntax:
  2017 
  2158 
  2018   $ echo 'x = "f' >> t
  2159   $ echo 'x = "f' >> t
  2019   $ hg log
  2160   $ hg log
  2020   abort: t:3: unmatched quotes
  2161   abort: t:3: unmatched quotes