mercurial/patch.py
changeset 41401 4a33a6bf2b52
parent 41375 f1b0d9988825
child 41454 d1d3094b54f9
--- a/mercurial/patch.py	Mon Jan 21 23:08:31 2019 -0800
+++ b/mercurial/patch.py	Sat Jan 26 13:14:21 2019 +0530
@@ -2806,9 +2806,9 @@
               line.startswith('Binary file')):
             isbinary = True
         elif line.startswith('rename from'):
-            filename = line.split()[-1]
+            filename = line[12:]
         elif line.startswith('rename to'):
-            filename += ' => %s' % line.split()[-1]
+            filename += ' => %s' % line[10:]
     addresult()
     return results