tests/histedit-helpers.sh
author Gregory Szorc <gregory.szorc@gmail.com>
Mon, 04 Nov 2019 20:21:31 -0800
branchstable
changeset 43408 d9e7ac50b80a
parent 27350 890273343170
permissions -rw-r--r--
run-tests: use byte strings for inserted output We were inserting str on Python 3 which resulted in mixed str/bytes types on the list. This would later blow up when trying to write str to the .err file opened in bytes mode. Differential Revision: https://phab.mercurial-scm.org/D7222

fixbundle() {
    grep -v 'saving bundle' | grep -v 'saved backup' | \
        grep -v added | grep -v adding | \
        grep -v "unable to find 'e' for patching" | \
        grep -v "e: No such file or directory" | \
    cat
}