comparison mercurial/util.py @ 2584:1f4703115e28

merge with crew
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 09 Jul 2006 14:42:18 +0200
parents 0875cda033fd
children 00fc88b0b256
comparison
equal deleted inserted replaced
2583:6e5427447f4c 2584:1f4703115e28
618 return path 618 return path
619 619
620 def parse_patch_output(output_line): 620 def parse_patch_output(output_line):
621 """parses the output produced by patch and returns the file name""" 621 """parses the output produced by patch and returns the file name"""
622 pf = output_line[14:] 622 pf = output_line[14:]
623 if pf.startswith("'") and pf.endswith("'") and pf.find(" ") >= 0: 623 if pf.startswith("'") and pf.endswith("'") and " " in pf:
624 pf = pf[1:-1] # Remove the quotes 624 pf = pf[1:-1] # Remove the quotes
625 return pf 625 return pf
626 626
627 def is_exec(f, last): 627 def is_exec(f, last):
628 """check whether a file is executable""" 628 """check whether a file is executable"""