tests/test-mq-qrefresh-replace-log-message
changeset 2843 0b9ac7dfcf56
parent 2715 79c31b6b9c83
child 2990 61fcd9fac434
equal deleted inserted replaced
2830:49988d9f0758 2843:0b9ac7dfcf56
    31 echo "Third commit message" > logfile
    31 echo "Third commit message" > logfile
    32 echo " This is the 3rd log message" >> logfile
    32 echo " This is the 3rd log message" >> logfile
    33 echo bbbb > file
    33 echo bbbb > file
    34 hg qrefresh -l logfile
    34 hg qrefresh -l logfile
    35 echo =======================
    35 echo =======================
    36 echo "Should display 'Third commit message\n This is the 3rd log message'"
    36 printf "Should display 'Third commit message\\\n This is the 3rd log message'\n"
    37 hg log -l1 -v | sed -n '/description/,$p'
    37 hg log -l1 -v | sed -n '/description/,$p'
    38 echo
    38 echo
    39 
    39 
    40 # Testing changing message with -l-
    40 # Testing changing message with -l-
    41 hg qnew -m "First commit message" second-patch
    41 hg qnew -m "First commit message" second-patch
    44 echo bbbb > file2
    44 echo bbbb > file2
    45 (echo "Fifth commit message" 
    45 (echo "Fifth commit message" 
    46 echo " This is the 5th log message" >> logfile) |\
    46 echo " This is the 5th log message" >> logfile) |\
    47 hg qrefresh -l-
    47 hg qrefresh -l-
    48 echo =======================
    48 echo =======================
    49 echo "Should display 'Fifth commit message\n This is the 5th log message'"
    49 printf "Should display 'Fifth commit message\\\n This is the 5th log message'\n"
    50 hg log -l1 -v | sed -n '/description/,$p'
    50 hg log -l1 -v | sed -n '/description/,$p'
    51 echo
    51 echo