tests/test-commit
changeset 8167 6c82beaaa11a
parent 7072 4e0d54fbd34f
child 8168 8766fee6f225
equal deleted inserted replaced
8166:56719b1aa6f4 8167:6c82beaaa11a
    24 hg -q revert -a --no-backup
    24 hg -q revert -a --no-backup
    25 
    25 
    26 mkdir dir
    26 mkdir dir
    27 echo boo > dir/file
    27 echo boo > dir/file
    28 hg add
    28 hg add
    29 hg -v commit -d '0 0' -m commit-9 dir
    29 hg -v commit -m commit-9 dir
    30 
    30 
    31 echo > dir.file
    31 echo > dir.file
    32 hg add
    32 hg add
    33 hg commit -d '0 0' -m commit-10 dir dir.file
    33 hg commit -m commit-10 dir dir.file
    34 
    34 
    35 echo >> dir/file
    35 echo >> dir/file
    36 mkdir bleh
    36 mkdir bleh
    37 mkdir dir2
    37 mkdir dir2
    38 cd bleh
    38 cd bleh
    39 hg commit -d '0 0' -m commit-11 .
    39 hg commit -m commit-11 .
    40 hg commit -d '0 0' -m commit-12 ../dir ../dir2
    40 hg commit -m commit-12 ../dir ../dir2
    41 hg -v commit -d '0 0' -m commit-13 ../dir
    41 hg -v commit -m commit-13 ../dir
    42 cd ..
    42 cd ..
    43 
    43 
    44 hg commit -d '0 0' -m commit-14 does-not-exist
    44 hg commit -m commit-14 does-not-exist
    45 ln -s foo baz
    45 ln -s foo baz
    46 hg commit -d '0 0' -m commit-15 baz
    46 hg commit -m commit-15 baz
    47 touch quux
    47 touch quux
    48 hg commit -d '0 0' -m commit-16 quux
    48 hg commit -m commit-16 quux
    49 echo >> dir/file
    49 echo >> dir/file
    50 hg -v commit -d '0 0' -m commit-17 dir/file
    50 hg -v commit -m commit-17 dir/file
    51 # An empty date was interpreted as epoch origin
    51 # An empty date was interpreted as epoch origin
    52 echo foo >> foo
    52 echo foo >> foo
    53 hg commit -d '' -m commit-no-date
    53 hg commit -d '' -m commit-no-date
    54 hg tip --template '{date|isodate}\n' | grep '1970'
    54 hg tip --template '{date|isodate}\n' | grep '1970'
    55 cd ..
    55 cd ..