tests/test-revert-interactive.t
changeset 24434 f169405c03ab
parent 24389 93d3e1a8bfb0
child 24475 06cbff4674a3
equal deleted inserted replaced
24433:f5f4dc115fb2 24434:f169405c03ab
    19 
    19 
    20 
    20 
    21   $ mkdir -p a/folder1 a/folder2
    21   $ mkdir -p a/folder1 a/folder2
    22   $ cd a
    22   $ cd a
    23   $ hg init
    23   $ hg init
    24   $ python $TESTDIR/seq.py 1 5 > f ; hg add f ; hg commit -m "adding f"
    24   >>> open('f', 'wb').write("1\n2\n3\n4\n5\n")
       
    25   $ hg add f ; hg commit -m "adding f"
    25   $ cat f > folder1/g ; hg add folder1/g ; hg commit -m "adding folder1/g"
    26   $ cat f > folder1/g ; hg add folder1/g ; hg commit -m "adding folder1/g"
    26   $ cat f > folder2/h ; hg add folder2/h ; hg commit -m "adding folder2/h"
    27   $ cat f > folder2/h ; hg add folder2/h ; hg commit -m "adding folder2/h"
    27   $ cat f > folder1/i ; hg add folder1/i ; hg commit -m "adding folder1/i"
    28   $ cat f > folder1/i ; hg add folder1/i ; hg commit -m "adding folder1/i"
    28   $ echo "a" > f ; python $TESTDIR/seq.py 1 5 >> f ; echo "b" >> f ; hg commit -m "modifying f"
    29   >>> open('f', 'wb').write("a\n1\n2\n3\n4\n5\nb\n")
    29   $ echo "c" > folder1/g ; python $TESTDIR/seq.py 1 5 >> folder1/g ; echo "d" >> folder1/g ; hg commit -m "modifying folder1/g"
    30   $ hg commit -m "modifying f"
    30   $ echo "e" > folder2/h ; python $TESTDIR/seq.py 1 5 >> folder2/h ; echo "f" >> folder2/h ; hg commit -m "modifying folder2/h"
    31   >>> open('folder1/g', 'wb').write("c\n1\n2\n3\n4\n5\nd\n")
       
    32   $ hg commit -m "modifying folder1/g"
       
    33   >>> open('folder2/h', 'wb').write("e\n1\n2\n3\n4\n5\nf\n")
       
    34   $ hg commit -m "modifying folder2/h"
    31   $ hg tip
    35   $ hg tip
    32   changeset:   6:59dd6e4ab63a
    36   changeset:   6:59dd6e4ab63a
    33   tag:         tip
    37   tag:         tip
    34   user:        test
    38   user:        test
    35   date:        Thu Jan 01 00:00:00 1970 +0000
    39   date:        Thu Jan 01 00:00:00 1970 +0000