##// END OF EJS Templates
tests: don't use dates before epoch in test-keyword.t...
Mads Kiilerich -
r17098:09305d77 default
parent child Browse files
Show More
@@ -334,7 +334,7 b' record chunk'
334 334 >>> lines.insert(1, 'foo\n')
335 335 >>> lines.append('bar\n')
336 336 >>> open('a', 'w').writelines(lines)
337 $ hg record -d '1 10' -m rectest a<<EOF
337 $ hg record -d '10 1' -m rectest a<<EOF
338 338 > y
339 339 > y
340 340 > n
@@ -355,7 +355,7 b' record chunk'
355 355 record change 2/2 to 'a'? [Ynesfdaq?]
356 356
357 357 $ hg identify
358 d17e03c92c97+ tip
358 5f5eb23505c3+ tip
359 359 $ hg status
360 360 M a
361 361 A r
@@ -363,7 +363,7 b' record chunk'
363 363 Cat modified file a
364 364
365 365 $ cat a
366 expand $Id: a,v d17e03c92c97 1970/01/01 00:00:01 test $
366 expand $Id: a,v 5f5eb23505c3 1970/01/01 00:00:10 test $
367 367 foo
368 368 do not process $Id:
369 369 xxx $
@@ -372,8 +372,8 b' Cat modified file a'
372 372 Diff remaining chunk
373 373
374 374 $ hg diff a
375 diff -r d17e03c92c97 a
376 --- a/a Wed Dec 31 23:59:51 1969 -0000
375 diff -r 5f5eb23505c3 a
376 --- a/a Thu Jan 01 00:00:09 1970 -0000
377 377 +++ b/a * (glob)
378 378 @@ -2,3 +2,4 @@
379 379 foo
@@ -391,7 +391,7 b' Record all chunks in file a'
391 391
392 392 - do not use "hg record -m" here!
393 393
394 $ hg record -l msg -d '1 11' a<<EOF
394 $ hg record -l msg -d '11 1' a<<EOF
395 395 > y
396 396 > y
397 397 > y
@@ -419,7 +419,7 b' File a should be clean'
419 419 rollback and revert expansion
420 420
421 421 $ cat a
422 expand $Id: a,v 59f969a3b52c 1970/01/01 00:00:01 test $
422 expand $Id: a,v 78e0a02d76aa 1970/01/01 00:00:11 test $
423 423 foo
424 424 do not process $Id:
425 425 xxx $
@@ -460,14 +460,14 b' Only z should be overwritten'
460 460
461 461 record added file alone
462 462
463 $ hg -v record -l msg -d '1 12' r<<EOF
463 $ hg -v record -l msg -d '12 2' r<<EOF
464 464 > y
465 465 > EOF
466 466 diff --git a/r b/r
467 467 new file mode 100644
468 468 examine changes to 'r'? [Ynesfdaq?]
469 469 r
470 committed changeset 3:899491280810
470 committed changeset 3:82a2f715724d
471 471 overwriting r expanding keywords
472 472 - status call required for dirstate.normallookup() check
473 473 $ hg status r
@@ -484,14 +484,14 b' record added keyword ignored file'
484 484
485 485 $ echo '$Id$' > i
486 486 $ hg add i
487 $ hg --verbose record -d '1 13' -m recignored<<EOF
487 $ hg --verbose record -d '13 1' -m recignored<<EOF
488 488 > y
489 489 > EOF
490 490 diff --git a/i b/i
491 491 new file mode 100644
492 492 examine changes to 'i'? [Ynesfdaq?]
493 493 i
494 committed changeset 3:5f40fe93bbdc
494 committed changeset 3:9f40ceb5a072
495 495 $ cat i
496 496 $Id$
497 497 $ hg -q rollback
@@ -502,14 +502,14 b' amend'
502 502
503 503 $ echo amend >> a
504 504 $ echo amend >> b
505 $ hg -q commit -d '1 14' -m 'prepare amend'
505 $ hg -q commit -d '14 1' -m 'prepare amend'
506 506
507 $ hg --debug commit --amend -d '1 15' -m 'amend without changes' | grep keywords
507 $ hg --debug commit --amend -d '15 1' -m 'amend without changes' | grep keywords
508 508 overwriting a expanding keywords
509 509 $ hg -q id
510 a71343332ea9
510 577e60613a88
511 511 $ head -1 a
512 expand $Id: a,v a71343332ea9 1970/01/01 00:00:01 test $
512 expand $Id: a,v 577e60613a88 1970/01/01 00:00:15 test $
513 513
514 514 $ hg -q strip -n tip
515 515
General Comments 0
You need to be logged in to leave comments. Login now