[PATCH 2 of 2] tests: ensure run-tests handles multiple lines of churn

timeless timeless at gmail.com
Thu Mar 24 17:42:54 EDT 2016

Yuya Nishihara wrote:
> This somehow failed on Windows. Can you take a look?

That's because of:
def linematch(el, l):
... Windows goes through this path (which is totally broken):
        if el == l or os.name == 'nt' and el[:-1] + b'\r\n' == l:
            return True
... Everyone else gets to reach this code (which is where the magic happens):
        if el.endswith(b" (glob)\n"):
            # ignore '(glob)' added to l by 'replacements'
            if l.endswith(b" (glob)\n"):
                l = l[:-8] + b"\n"
            return TTest.globmatch(el[:-8], l)

More information about the Mercurial-devel mailing list