Skip to content

Commit 8b23bde

Browse files
author
Stephen Kennedy
committed
Diff fails for filenames with spaces. Bug 352912
1 parent 7713cb7 commit 8b23bde

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

vcview.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ def show_patch(self, prefix, patch):
422422
self.tempdirs.append(tmpdir)
423423

424424
regex = re.compile(self.vc.PATCH_INDEX_RE, re.M)
425-
files = [f.split()[-1] for f in regex.findall(patch)]
425+
files = [f.strip() for f in regex.findall(patch)]
426426
diffs = []
427427
for fname in files:
428428
destfile = os.path.join(tmpdir,fname)

0 commit comments

Comments
 (0)