changeset 2579 | 0875cda033fd |
parent 2546 | 8cb894370514 |
child 2601 | 00fc88b0b256 |
--- a/mercurial/util.py Sat Jul 08 16:55:49 2006 +0200 +++ b/mercurial/util.py Sun Jul 09 01:30:30 2006 +0200 @@ -620,7 +620,7 @@ def parse_patch_output(output_line): """parses the output produced by patch and returns the file name""" pf = output_line[14:] - if pf.startswith("'") and pf.endswith("'") and pf.find(" ") >= 0: + if pf.startswith("'") and pf.endswith("'") and " " in pf: pf = pf[1:-1] # Remove the quotes return pf