tests/test-keyword.out
changeset 223 65a01675a944
parent 215 ff719fcc10a3
child 224 fd98a9bffcbe
equal deleted inserted replaced
222:f956a8301c25 223:65a01675a944
    66 $Branch: demobranch $
    66 $Branch: demobranch $
    67 % kwshrink should abort in empty/invalid repo
    67 % kwshrink should abort in empty/invalid repo
    68 abort: no revision checked out!
    68 abort: no revision checked out!
    69 % cat
    69 % cat
    70 expand $Id$
    70 expand $Id$
       
    71 do not process $Id:
       
    72 xxx $
    71 ignore $Id$
    73 ignore $Id$
    72 % default keyword expansion
    74 % default keyword expansion
    73 % commit
    75 % commit
    74 adding a
    76 adding a
    75 adding b
    77 adding b
    76 a
    78 a
    77 b
    79 b
    78 overwriting a expanding keywords
    80 overwriting a expanding keywords
    79 % status
    81 % status
    80 % identify
    82 % identify
    81 65cbcc9534b0
    83 7f0665a496fd
    82 % cat
    84 % cat
    83 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $
    85 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
    84 ignore $Id$
    86 do not process $Id:
    85 % hg cat
    87 xxx $
    86 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $
    88 ignore $Id$
       
    89 % hg cat
       
    90 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
       
    91 do not process $Id:
       
    92 xxx $
    87 ignore $Id$
    93 ignore $Id$
    88 % touch
    94 % touch
    89 % status
    95 % status
    90 % update
    96 % update
    91 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
    97 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
    92 % cat
    98 % cat
    93 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $
    99 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
       
   100 do not process $Id:
       
   101 xxx $
    94 ignore $Id$
   102 ignore $Id$
    95 % copy
   103 % copy
    96 % commit
   104 % commit
    97 c
   105 c
    98  c: copy a:e6cc15c9eb5fd3c09ec691b667cf6ccd6dfb936e
   106  c: copy a:0045e12f6c5791aac80ca6cbfd97709a88307292
    99 overwriting c expanding keywords
   107 overwriting c expanding keywords
   100 % cat a c
   108 % cat a c
   101 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $
   109 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
   102 expand $Id: c,v 9460ba56f8d0 1970/01/01 00:00:01 user $
   110 do not process $Id:
       
   111 xxx $
       
   112 expand $Id: c,v 6a127771f5db 1970/01/01 00:00:01 user $
       
   113 do not process $Id:
       
   114 xxx $
   103 % touch copied c
   115 % touch copied c
   104 % status
   116 % status
   105 % rollback
   117 % rollback
   106 rolling back last transaction
   118 rolling back last transaction
   107 % status
   119 % status
   118 demo.txt = 
   130 demo.txt = 
   119 [keywordmaps]
   131 [keywordmaps]
   120 Xinfo = {author}: {desc}
   132 Xinfo = {author}: {desc}
   121 $Xinfo: test: hg keyword config and expansion example $
   133 $Xinfo: test: hg keyword config and expansion example $
   122 % cat
   134 % cat
   123 expand $Id: a,v 65cbcc9534b0 1970/01/01 00:00:00 user $
   135 expand $Id: a,v 7f0665a496fd 1970/01/01 00:00:00 user $
   124 ignore $Id$
   136 do not process $Id:
   125 % hg cat
   137 xxx $
   126 expand $Id: a 65cbcc9534b0 Thu, 01 Jan 1970 00:00:00 +0000 user $
   138 ignore $Id$
       
   139 % hg cat
       
   140 expand $Id: a 7f0665a496fd Thu, 01 Jan 1970 00:00:00 +0000 user $
       
   141 do not process $Id:
       
   142 xxx $
   127 ignore $Id$
   143 ignore $Id$
   128 % interrupted commit
   144 % interrupted commit
   129 transaction abort!
   145 transaction abort!
   130 rollback completed
   146 rollback completed
   131 % status
   147 % status
   134 % commit
   150 % commit
   135 a
   151 a
   136 overwriting a expanding keywords
   152 overwriting a expanding keywords
   137 % status
   153 % status
   138 % cat
   154 % cat
   139 expand $Id: a 6ade9dd7b017 Thu, 01 Jan 1970 00:00:02 +0000 user $
   155 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   140 $Xinfo: User Name <user@example.com>: firstline $
   156 do not process $Id:
   141 ignore $Id$
   157 xxx $
   142 % hg cat
   158 $Xinfo: User Name <user@example.com>: firstline $
   143 expand $Id: a 6ade9dd7b017 Thu, 01 Jan 1970 00:00:02 +0000 user $
   159 ignore $Id$
       
   160 % hg cat
       
   161 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
       
   162 do not process $Id:
       
   163 xxx $
   144 $Xinfo: User Name <user@example.com>: firstline $
   164 $Xinfo: User Name <user@example.com>: firstline $
   145 ignore $Id$
   165 ignore $Id$
   146 % remove
   166 % remove
   147 % status
   167 % status
   148 % rollback
   168 % rollback
   149 rolling back last transaction
   169 rolling back last transaction
   150 % status
   170 % status
   151 R a
   171 R a
   152 % revert a
   172 % revert a
   153 % cat a
   173 % cat a
   154 expand $Id: a 6ade9dd7b017 Thu, 01 Jan 1970 00:00:02 +0000 user $
   174 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
       
   175 do not process $Id:
       
   176 xxx $
   155 $Xinfo: User Name <user@example.com>: firstline $
   177 $Xinfo: User Name <user@example.com>: firstline $
   156 % clone to test incoming
   178 % clone to test incoming
   157 requesting all changes
   179 requesting all changes
   158 adding changesets
   180 adding changesets
   159 adding manifests
   181 adding manifests
   160 adding file changes
   182 adding file changes
   161 added 1 changesets with 2 changes to 2 files
   183 added 1 changesets with 2 changes to 2 files
   162 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   184 2 files updated, 0 files merged, 0 files removed, 0 files unresolved
   163 % incoming
   185 % incoming
   164 searching for changes
   186 searching for changes
   165 changeset:   1:6ade9dd7b017
   187 changeset:   1:576a35651b0a
   166 tag:         tip
   188 tag:         tip
   167 user:        User Name <user@example.com>
   189 user:        User Name <user@example.com>
   168 date:        Thu Jan 01 00:00:02 1970 +0000
   190 date:        Thu Jan 01 00:00:02 1970 +0000
   169 summary:     firstline
   191 summary:     firstline
   170 
   192 
   171 % switch off expansion
   193 % switch off expansion
   172 % kwshrink
   194 % kwshrink
   173 overwriting a shrinking keywords
   195 overwriting a shrinking keywords
   174 % cat
   196 % cat
   175 expand $Id$
   197 expand $Id$
       
   198 do not process $Id:
       
   199 xxx $
   176 $Xinfo$
   200 $Xinfo$
   177 ignore $Id$
   201 ignore $Id$
   178 % hg cat
   202 % hg cat
   179 expand $Id: a 6ade9dd7b017 Thu, 01 Jan 1970 00:00:02 +0000 user $
   203 expand $Id: a 576a35651b0a Thu, 01 Jan 1970 00:00:02 +0000 user $
   180 $Xinfo: User Name <user@example.com>: firstline $
   204 do not process $Id:
   181 ignore $Id$
   205 xxx $
   182 % cat
   206 $Xinfo: User Name <user@example.com>: firstline $
   183 expand $Id$
   207 ignore $Id$
       
   208 % cat
       
   209 expand $Id$
       
   210 do not process $Id:
       
   211 xxx $
   184 $Xinfo$
   212 $Xinfo$
   185 ignore $Id$
   213 ignore $Id$
   186 % hg cat
   214 % hg cat
   187 expand $Id$
   215 expand $Id$
       
   216 do not process $Id:
       
   217 xxx $
   188 $Xinfo$
   218 $Xinfo$
   189 ignore $Id$
   219 ignore $Id$