patch: remove CRLF when parsing file names
authorPatrick Mezard <pmezard@gmail.com>
Sat, 12 Jan 2008 20:43:09 +0100
changeset 5851 03f550f9b554
parent 5849 000ed6873951
child 5852 03ce5a919ae3
patch: remove CRLF when parsing file names
mercurial/patch.py
--- 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(' ')