Subject: | "---" style diffs without a "diff -u" header don't track filename1 properly |
Date: | Wed, 22 Aug 2007 16:16:22 -0700 |
To: | bug-Text-Diff-Parser [...] rt.cpan.org |
From: | Max Kanat-Alexander <mkanat [...] bugzilla.org> |
Mercurial generates patches that have "---" and "+++" headers,
but no "diff -u file1 file2" header.
Text::Diff::Parser doesn't seem to update the filename1
properly in this case. It's always the filename1 of the very first file
in the patch.
Here's a sample patch that triggers this bug:
http://hg.intevation.org/roundup/fast/rev/9ac3672df4ee/?style=raw
And attached is a script that proves the bug, provided that the
above diff is put into a file called "diff".
-Max
--
http://www.everythingsolved.com/
Competent, Friendly Bugzilla Services. And Everything Else, too.
Message body is not shown because sender requested not to inline it.