tests/histedit-helpers.sh
author Yuya Nishihara <yuya@tcha.org>
Sun, 27 Oct 2019 12:49:09 +0900
branchstable
changeset 43337 7e20b705da5b
parent 27350 890273343170
permissions -rw-r--r--
formatter: fix handling of None value in templater mapping For historical reasons, None in mapping dict means there's no such keyword, and falls back to b"". That's fine in log templates where mapping item is generally a callable returning a value (which may be None,) but the formatter directly puts an "evaluated" value in the mapping. So the None value has to be lifted to wrappedvalue(None) to avoid confusion in the template engine.

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
}