[issue1763] patch.patch incorrectly reads crlf (dos style) git patches

Bill mercurial-bugs at selenic.com
Fri Jul 24 10:51:18 CDT 2009


New submission from Bill <after.fallout at gmail.com>:

With the following patch (dos style crlf line endings):

# HG changeset patch
# User Bill Barry <after.fallout at gmail.com>
# Parent  a0dd4aaaaaff120d5e743c4a33857f856b8fc2fe
diff --git a/test.txt b/test.txt
--- a/test.txt
+++ b/test.txt
@@ -23,6 +23,7 @@
 m
 n
 o
+a simple change
 p
 q
 r


patch.patch is setting the files output parameter to:
{'test.txt': None, 'test.txt\r': <mercurial.patch.patchmeta object at
0x00DD89D0>}

causing an immediate patch.updatedir call to emit:
: The filename, directory name, or volume label syntax is incorrect

when it iterates over ['test.txt', 'test.txt\r'] in the call to
cmdutil.addremove

----------
messages: 10202
nosy: BillBarry
priority: bug
status: unread
title: patch.patch incorrectly reads crlf (dos style) git patches

____________________________________________________
Mercurial issue tracker <mercurial-bugs at selenic.com>
<http://mercurial.selenic.com/bts/issue1763>
____________________________________________________



More information about the Mercurial-devel mailing list