[Bug 3879] New: hg patch on Windows removes newlines
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Thu Apr 4 09:36:58 CDT 2013
http://bz.selenic.com/show_bug.cgi?id=3879
Priority: normal
Bug ID: 3879
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: hg patch on Windows removes newlines
Severity: bug
Classification: Unclassified
OS: Windows
Reporter: jaraco at jaraco.com
Hardware: PC
Status: UNCONFIRMED
Version: unspecified
Component: Mercurial
Product: Mercurial
Using hg 2.5.2 as bundled with TortoiseHg 2.7.1 64-bit, I apply a simple patch
using the 'hg patch' command.
Both the source file and the patch file use Unix LF newlines, but the resulting
commit (or outstanding changes if --no-commit is used) are missing all blank
lines. That is, patch has caused more changes than were specified in the patch
file, replacing all instances of '\n\n' with '\n', even in parts of the file
that weren't even referenced by the patch.
I was able to work around the problem by performing the same patch operation
using the exact same files mounted in a Vagrant VM using Ubuntu and hg 2.5.2,
so the problem seems to be isolated to Windows.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list