changeset 5851:03f550f9b554

patch: remove CRLF when parsing file names
author Patrick Mezard <pmezard@gmail.com>
date Sat, 12 Jan 2008 20:43:09 +0100
parents 000ed6873951
children 03ce5a919ae3
files mercurial/patch.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/patch.py	Fri Jan 11 18:31:13 2008 -0800
+++ b/mercurial/patch.py	Sat Jan 12 20:43:09 2008 +0100
@@ -767,7 +767,7 @@
 
 def parsefilename(str):
     # --- filename \t|space stuff
-    s = str[4:]
+    s = str[4:].rstrip('\r\n')
     i = s.find('\t')
     if i < 0:
         i = s.find(' ')