82 demo.txt = |
82 demo.txt = |
83 [keywordmaps] |
83 [keywordmaps] |
84 Branch = {branches} |
84 Branch = {branches} |
85 $Branch: demobranch $ |
85 $Branch: demobranch $ |
86 % kwshrink should exit silently in empty/invalid repo |
86 % kwshrink should exit silently in empty/invalid repo |
87 % cat |
87 pulling from test-keyword.hg |
88 expand $Id$ |
88 requesting all changes |
89 do not process $Id: |
89 adding changesets |
90 xxx $ |
90 adding manifests |
|
91 adding file changes |
|
92 added 1 changesets with 1 changes to 1 files |
|
93 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
94 % cat |
91 expand $Id$ |
95 expand $Id$ |
92 do not process $Id: |
96 do not process $Id: |
93 xxx $ |
97 xxx $ |
94 ignore $Id$ |
98 ignore $Id$ |
95 % addremove |
99 % addremove |
96 adding a |
100 adding a |
97 adding b |
101 adding b |
98 adding sym |
|
99 % status |
102 % status |
100 A a |
103 A a |
101 A b |
104 A b |
102 A sym |
|
103 % default keyword expansion including commit hook |
105 % default keyword expansion including commit hook |
104 % interrupted commit should not change state or run commit hook |
106 % interrupted commit should not change state or run commit hook |
105 a |
107 a |
106 b |
108 b |
107 sym |
|
108 transaction abort! |
109 transaction abort! |
109 rollback completed |
110 rollback completed |
110 abort: empty commit message |
111 abort: empty commit message |
111 % status |
112 % status |
112 A a |
113 A a |
113 A b |
114 A b |
114 A sym |
|
115 % commit |
115 % commit |
116 a |
116 a |
117 b |
117 b |
118 sym |
|
119 overwriting a expanding keywords |
118 overwriting a expanding keywords |
120 running hook commit.test: cp a hooktest |
119 running hook commit.test: cp a hooktest |
121 % status |
120 % status |
122 ? hooktest |
121 ? hooktest |
123 % identify |
122 % identify |
124 f782df5f9602 |
123 ef63ca68695b |
125 % cat |
124 % cat |
126 expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $ |
125 expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
127 do not process $Id: |
126 do not process $Id: |
128 xxx $ |
127 xxx $ |
129 expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $ |
128 ignore $Id$ |
130 do not process $Id: |
129 % hg cat |
131 xxx $ |
130 expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
132 ignore $Id$ |
|
133 % hg cat |
|
134 expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $ |
|
135 do not process $Id: |
131 do not process $Id: |
136 xxx $ |
132 xxx $ |
137 ignore $Id$ |
133 ignore $Id$ |
138 a |
134 a |
139 % diff a hooktest |
135 % diff a hooktest |
140 % removing commit hook from config |
136 % removing commit hook from config |
141 % bundle |
137 % bundle |
142 1 changesets found |
138 2 changesets found |
143 % pull from bundle |
139 % pull from bundle |
144 pulling from ../kw.hg |
140 pulling from ../kw.hg |
145 requesting all changes |
141 requesting all changes |
146 adding changesets |
142 adding changesets |
147 adding manifests |
143 adding manifests |
148 adding file changes |
144 adding file changes |
149 added 1 changesets with 3 changes to 3 files |
145 added 2 changesets with 3 changes to 3 files |
150 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
146 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
151 % touch |
147 % touch |
152 % status |
148 % status |
153 % update |
149 % update |
154 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
150 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
155 % cat |
151 % cat |
156 expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $ |
152 expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
157 do not process $Id: |
|
158 xxx $ |
|
159 expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $ |
|
160 do not process $Id: |
153 do not process $Id: |
161 xxx $ |
154 xxx $ |
162 ignore $Id$ |
155 ignore $Id$ |
163 % check whether expansion is filewise |
156 % check whether expansion is filewise |
164 % commit c |
157 % commit c |
165 adding c |
158 adding c |
166 % force expansion |
159 % force expansion |
167 overwriting a expanding keywords |
160 overwriting a expanding keywords |
168 overwriting c expanding keywords |
161 overwriting c expanding keywords |
169 % compare changenodes in a c |
162 % compare changenodes in a c |
170 expand $Id: a,v f782df5f9602 1970/01/01 00:00:00 user $ |
163 expand $Id: a,v ef63ca68695b 1970/01/01 00:00:00 user $ |
171 do not process $Id: |
164 do not process $Id: |
172 xxx $ |
165 xxx $ |
173 $Id: c,v ba4426d1938e 1970/01/01 00:00:01 user $ |
166 $Id: c,v 40a904bbbe4c 1970/01/01 00:00:01 user $ |
174 tests for different changenodes |
167 tests for different changenodes |
175 % qinit -c |
168 % qinit -c |
176 % qimport |
169 % qimport |
177 % qcommit |
170 % qcommit |
178 % keywords should not be expanded in patch |
171 % keywords should not be expanded in patch |
179 # HG changeset patch |
172 # HG changeset patch |
180 # User User Name <user@example.com> |
173 # User User Name <user@example.com> |
181 # Date 1 0 |
174 # Date 1 0 |
182 # Node ID ba4426d1938ec9673e03ab274d88c44e24618f7f |
175 # Node ID 40a904bbbe4cd4ab0a1f28411e35db26341a40ad |
183 # Parent f782df5f9602483b4e51c31a12315f353bba380c |
176 # Parent ef63ca68695bc9495032c6fda1350c71e6d256e9 |
184 cndiff |
177 cndiff |
185 |
178 |
186 diff -r f782df5f9602 -r ba4426d1938e c |
179 diff -r ef63ca68695b -r 40a904bbbe4c c |
187 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
180 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 |
188 +++ b/c Thu Jan 01 00:00:01 1970 +0000 |
181 +++ b/c Thu Jan 01 00:00:01 1970 +0000 |
189 @@ -0,0 +1,2 @@ |
182 @@ -0,0 +1,2 @@ |
190 +$Id$ |
183 +$Id$ |
191 +tests for different changenodes |
184 +tests for different changenodes |
291 rolling back last transaction |
277 rolling back last transaction |
292 % status |
278 % status |
293 R a |
279 R a |
294 % revert a |
280 % revert a |
295 % cat a |
281 % cat a |
296 expand $Id: a 0729690beff6 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
282 expand $Id: a bb948857c743 Thu, 01 Jan 1970 00:00:02 +0000 user $ |
297 do not process $Id: |
283 do not process $Id: |
298 xxx $ |
284 xxx $ |
299 $Xinfo: User Name <user@example.com>: firstline $ |
285 $Xinfo: User Name <user@example.com>: firstline $ |
300 % clone to test incoming |
286 % clone to test incoming |
301 requesting all changes |
287 requesting all changes |
302 adding changesets |
288 adding changesets |
303 adding manifests |
289 adding manifests |
304 adding file changes |
290 adding file changes |
305 added 1 changesets with 3 changes to 3 files |
291 added 2 changesets with 3 changes to 3 files |
306 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
292 3 files updated, 0 files merged, 0 files removed, 0 files unresolved |
307 % incoming |
293 % incoming |
308 comparing with test-keyword/Test |
294 comparing with test-keyword/Test |
309 searching for changes |
295 searching for changes |
310 changeset: 1:0729690beff6 |
296 changeset: 2:bb948857c743 |
311 tag: tip |
297 tag: tip |
312 user: User Name <user@example.com> |
298 user: User Name <user@example.com> |
313 date: Thu Jan 01 00:00:02 1970 +0000 |
299 date: Thu Jan 01 00:00:02 1970 +0000 |
314 summary: firstline |
300 summary: firstline |
315 |
301 |
342 abort: outstanding uncommitted changes in given files |
324 abort: outstanding uncommitted changes in given files |
343 x/a |
325 x/a |
344 x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
326 x/a: copy a:779c764182ce5d43e2b1eb66ce06d7b47bfe342e |
345 overwriting x/a expanding keywords |
327 overwriting x/a expanding keywords |
346 % cat a |
328 % cat a |
347 expand $Id: x/a f27c134d2d9b Thu, 01 Jan 1970 00:00:03 +0000 user $ |
329 expand $Id: x/a cfa68229c116 Thu, 01 Jan 1970 00:00:03 +0000 user $ |
348 do not process $Id: |
330 do not process $Id: |
349 xxx $ |
331 xxx $ |
350 $Xinfo: User Name <user@example.com>: xa $ |
332 $Xinfo: User Name <user@example.com>: xa $ |
351 % kwshrink a inside directory x |
333 % kwshrink a inside directory x |
352 overwriting x/a shrinking keywords |
334 overwriting x/a shrinking keywords |