##// END OF EJS Templates
test-revert: also create a text version of the snapshot...
Pierre-Yves David -
r22126:651b2149 default
parent child Browse files
Show More
@@ -477,6 +477,20 b' Write the python script to disk'
477 > f.close()
477 > f.close()
478 > EOF
478 > EOF
479
479
480 Script to make a simple text version of the content
481 ---------------------------------------------------
482
483 $ cat << EOF >> dircontent.py
484 > # generate a simple text view of the directory for easy comparison
485 > import os
486 > files = os.listdir('.')
487 > files.sort()
488 > for filename in files:
489 > if os.path.isdir(filename):
490 > continue
491 > content = open(filename).read()
492 > print '%-6s %s' % (content.strip(), filename)
493 > EOF
480
494
481 Generate appropriate repo state
495 Generate appropriate repo state
482 -------------------------------
496 -------------------------------
@@ -493,6 +507,12 b' Generate base changeset'
493 A modified_clean
507 A modified_clean
494 $ hg commit -m 'base'
508 $ hg commit -m 'base'
495
509
510 (create a simple text version of the content)
511
512 $ python ../dircontent.py > ../content-base.txt
513 $ cat ../content-base.txt
514 base modified_clean
515
496 Create parent changeset
516 Create parent changeset
497
517
498 $ python ../gen-revert-cases.py parent
518 $ python ../gen-revert-cases.py parent
@@ -501,6 +521,12 b' Create parent changeset'
501 M modified_clean
521 M modified_clean
502 $ hg commit -m 'parent'
522 $ hg commit -m 'parent'
503
523
524 (create a simple text version of the content)
525
526 $ python ../dircontent.py > ../content-parent.txt
527 $ cat ../content-parent.txt
528 parent modified_clean
529
504 Setup working directory
530 Setup working directory
505
531
506 $ python ../gen-revert-cases.py wc | cat
532 $ python ../gen-revert-cases.py wc | cat
@@ -510,5 +536,11 b' Setup working directory'
510 $ hg status --rev 'desc("base")'
536 $ hg status --rev 'desc("base")'
511 M modified_clean
537 M modified_clean
512
538
539 (create a simple text version of the content)
540
541 $ python ../dircontent.py > ../content-wc.txt
542 $ cat ../content-wc.txt
543 parent modified_clean
544
513 $ cd ..
545 $ cd ..
514
546
General Comments 0
You need to be logged in to leave comments. Login now