tests/histedit-helpers.sh
author Kevin Bullock <kbullock@ringworld.org>
Sun, 24 Nov 2013 17:33:39 -0600
changeset 20216 01bdccfeb9d9
parent 17085 35729bdd59b6
child 27350 890273343170
permissions -rw-r--r--
discovery: prefer loop to double-for list comprehension in changegroupsubset The double-for form of list comprehensions gets particularly unreadable when you throw in an 'if' condition. This expands the only remaining instance of the double-for syntax in our codebase into a loop.

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"
}