Show More
@@ -281,6 +281,7 b' Clean hook cached version' | |||||
281 | ... f.close() |
|
281 | ... f.close() | |
282 | ... runcommand(server, ['commit', '-Amm']) |
|
282 | ... runcommand(server, ['commit', '-Amm']) | |
283 | ... runcommand(server, ['bookmarks']) |
|
283 | ... runcommand(server, ['bookmarks']) | |
|
284 | ... print('') | |||
284 | *** runcommand bookmarks |
|
285 | *** runcommand bookmarks | |
285 | no bookmarks set |
|
286 | no bookmarks set | |
286 | *** runcommand bookmarks |
|
287 | *** runcommand bookmarks | |
@@ -296,6 +297,7 b' Clean hook cached version' | |||||
296 | bm2 1:d3a0a68be6de |
|
297 | bm2 1:d3a0a68be6de | |
297 | * bm3 2:aef17e88f5f0 |
|
298 | * bm3 2:aef17e88f5f0 | |
298 |
|
299 | |||
|
300 | ||||
299 | >>> import os |
|
301 | >>> import os | |
300 | >>> from hgclient import readchannel, runcommand, check |
|
302 | >>> from hgclient import readchannel, runcommand, check | |
301 | >>> @check |
|
303 | >>> @check | |
@@ -331,6 +333,7 b' Clean hook cached version' | |||||
331 | ... runcommand(server, ['commit', '-Am.']) |
|
333 | ... runcommand(server, ['commit', '-Am.']) | |
332 | ... runcommand(server, ['rollback']) |
|
334 | ... runcommand(server, ['rollback']) | |
333 | ... runcommand(server, ['phase', '-r', '.']) |
|
335 | ... runcommand(server, ['phase', '-r', '.']) | |
|
336 | ... print('') | |||
334 | *** runcommand phase -r . -p |
|
337 | *** runcommand phase -r . -p | |
335 | no phases changed |
|
338 | no phases changed | |
336 | *** runcommand commit -Am. |
|
339 | *** runcommand commit -Am. | |
@@ -340,6 +343,7 b' Clean hook cached version' | |||||
340 | *** runcommand phase -r . |
|
343 | *** runcommand phase -r . | |
341 | 3: public |
|
344 | 3: public | |
342 |
|
345 | |||
|
346 | ||||
343 | >>> import os |
|
347 | >>> import os | |
344 | >>> from hgclient import readchannel, runcommand, check |
|
348 | >>> from hgclient import readchannel, runcommand, check | |
345 | >>> @check |
|
349 | >>> @check | |
@@ -372,11 +376,13 b' Clean hook cached version' | |||||
372 | ... f.write('ignored-file') |
|
376 | ... f.write('ignored-file') | |
373 | ... f.close() |
|
377 | ... f.close() | |
374 | ... runcommand(server, ['status', '-i', '-u']) |
|
378 | ... runcommand(server, ['status', '-i', '-u']) | |
|
379 | ... print('') | |||
375 | *** runcommand commit -Am. |
|
380 | *** runcommand commit -Am. | |
376 | adding .hgignore |
|
381 | adding .hgignore | |
377 | *** runcommand status -i -u |
|
382 | *** runcommand status -i -u | |
378 | I ignored-file |
|
383 | I ignored-file | |
379 |
|
384 | |||
|
385 | ||||
380 | cache of non-public revisions should be invalidated on repository change |
|
386 | cache of non-public revisions should be invalidated on repository change | |
381 | (issue4855): |
|
387 | (issue4855): | |
382 |
|
388 | |||
@@ -396,6 +402,7 b' cache of non-public revisions should be ' | |||||
396 | ... os.system('hg commit -Aqm%d' % i) |
|
402 | ... os.system('hg commit -Aqm%d' % i) | |
397 | ... # new commits should be listed as draft revisions |
|
403 | ... # new commits should be listed as draft revisions | |
398 | ... runcommand(server, ['log', '-qr', 'draft()']) |
|
404 | ... runcommand(server, ['log', '-qr', 'draft()']) | |
|
405 | ... print('') | |||
399 | *** runcommand log -qr draft() |
|
406 | *** runcommand log -qr draft() | |
400 | 4:7966c8e3734d |
|
407 | 4:7966c8e3734d | |
401 | *** runcommand log -qr draft() |
|
408 | *** runcommand log -qr draft() | |
@@ -403,6 +410,7 b' cache of non-public revisions should be ' | |||||
403 | 5:41f6602d1c4f |
|
410 | 5:41f6602d1c4f | |
404 | 6:10501e202c35 |
|
411 | 6:10501e202c35 | |
405 |
|
412 | |||
|
413 | ||||
406 | >>> import os |
|
414 | >>> import os | |
407 | >>> from hgclient import readchannel, runcommand, check |
|
415 | >>> from hgclient import readchannel, runcommand, check | |
408 | >>> @check |
|
416 | >>> @check | |
@@ -414,6 +422,7 b' cache of non-public revisions should be ' | |||||
414 | ... os.system('hg --config extensions.strip= strip -q 5') |
|
422 | ... os.system('hg --config extensions.strip= strip -q 5') | |
415 | ... # shouldn't abort by "unknown revision '6'" |
|
423 | ... # shouldn't abort by "unknown revision '6'" | |
416 | ... runcommand(server, ['log', '-qr', 'draft()']) |
|
424 | ... runcommand(server, ['log', '-qr', 'draft()']) | |
|
425 | ... print('') | |||
417 | *** runcommand log -qr draft() |
|
426 | *** runcommand log -qr draft() | |
418 | 4:7966c8e3734d |
|
427 | 4:7966c8e3734d | |
419 | 5:41f6602d1c4f |
|
428 | 5:41f6602d1c4f | |
@@ -421,6 +430,7 b' cache of non-public revisions should be ' | |||||
421 | *** runcommand log -qr draft() |
|
430 | *** runcommand log -qr draft() | |
422 | 4:7966c8e3734d |
|
431 | 4:7966c8e3734d | |
423 |
|
432 | |||
|
433 | ||||
424 | cache of phase roots should be invalidated on strip (issue3827): |
|
434 | cache of phase roots should be invalidated on strip (issue3827): | |
425 |
|
435 | |||
426 | >>> import os |
|
436 | >>> import os |
General Comments 0
You need to be logged in to leave comments.
Login now