tests/test-keyword.out
branch0.9.2compat
changeset 359 4ac7e51443fe
parent 348 63ebc698d06b
child 360 ed06223f88fc
equal deleted inserted replaced
352:a71e2086fe6e 359:4ac7e51443fe
    31 like CVS' $Log$, are not supported. A keyword template map
    31 like CVS' $Log$, are not supported. A keyword template map
    32 "Log = {desc}" expands to the first line of the changeset description.
    32 "Log = {desc}" expands to the first line of the changeset description.
    33 Caveat: "hg import" fails if the patch context contains an active
    33 Caveat: "hg import" fails if the patch context contains an active
    34         keyword. In that case run "hg kwshrink", and then reimport.
    34         keyword. In that case run "hg kwshrink", and then reimport.
    35         Or, better, use bundle/unbundle to share changes.
    35         Or, better, use bundle/unbundle to share changes.
       
    36  kwcat      output the current or given revision of files expanding keywords
    36  kwdemo     print [keywordmaps] configuration and an expansion example
    37  kwdemo     print [keywordmaps] configuration and an expansion example
    37  kwexpand   expand keywords in working directory
    38  kwexpand   expand keywords in working directory
    38  kwfiles    print files currently configured for keyword expansion
    39  kwfiles    print files currently configured for keyword expansion
    39  kwshrink   revert expanded keywords in working directory
    40  kwshrink   revert expanded keywords in working directory
    40 % hg kwdemo
    41 % hg kwdemo
    93 % cat
    94 % cat
    94 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
    95 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
    95 do not process $Id:
    96 do not process $Id:
    96 xxx $
    97 xxx $
    97 ignore $Id$
    98 ignore $Id$
    98 % hg cat
    99 % hg kwcat
    99 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
   100 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
   100 do not process $Id:
   101 do not process $Id:
   101 xxx $
   102 xxx $
   102 ignore $Id$
   103 ignore $Id$
   103 
   104 
   196 % cat
   197 % cat
   197 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
   198 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
   198 do not process $Id:
   199 do not process $Id:
   199 xxx $
   200 xxx $
   200 ignore $Id$
   201 ignore $Id$
   201 % hg cat
   202 % hg kwcat
   202 expand $Id: a 7f0665a496fd Thu, 01 Jan 1970 00:00:00 +0000 user $
   203 expand $Id: a 7f0665a496fd Thu, 01 Jan 1970 00:00:00 +0000 user $
   203 do not process $Id:
   204 do not process $Id:
   204 xxx $
   205 xxx $
   205 ignore $Id$
   206 ignore $Id$
   206 % commit
   207 % commit
   211 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   212 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   212 do not process $Id:
   213 do not process $Id:
   213 xxx $
   214 xxx $
   214 $Xinfo: User Name <user@example.com>: firstline $
   215 $Xinfo: User Name <user@example.com>: firstline $
   215 ignore $Id$
   216 ignore $Id$
   216 % hg cat
   217 % hg kwcat
   217 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   218 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   218 do not process $Id:
   219 do not process $Id:
   219 xxx $
   220 xxx $
   220 $Xinfo: User Name <user@example.com>: firstline $
   221 $Xinfo: User Name <user@example.com>: firstline $
   221 ignore $Id$
   222 ignore $Id$
   277 expand $Id$
   278 expand $Id$
   278 do not process $Id:
   279 do not process $Id:
   279 xxx $
   280 xxx $
   280 $Xinfo$
   281 $Xinfo$
   281 ignore $Id$
   282 ignore $Id$
   282 % hg cat
   283 % hg kwcat
   283 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   284 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   284 do not process $Id:
   285 do not process $Id:
   285 xxx $
   286 xxx $
   286 $Xinfo: User Name <user@example.com>: firstline $
   287 $Xinfo: User Name <user@example.com>: firstline $
   287 ignore $Id$
   288 ignore $Id$
   288 % cat
       
   289 expand $Id$
       
   290 do not process $Id:
       
   291 xxx $
       
   292 $Xinfo$
       
   293 ignore $Id$
       
   294 % hg cat
       
   295 expand $Id$
       
   296 do not process $Id:
       
   297 xxx $
       
   298 $Xinfo$
       
   299 ignore $Id$