mercurial/posix.py
changeset 14231 8abe4db2d162
parent 14165 78bdfc756908
child 14232 df2399663392
equal deleted inserted replaced
14230:d51630301241 14231:8abe4db2d162
    26 
    26 
    27 def nlinks(name):
    27 def nlinks(name):
    28     '''return number of hardlinks for the given file'''
    28     '''return number of hardlinks for the given file'''
    29     return os.lstat(name).st_nlink
    29     return os.lstat(name).st_nlink
    30 
    30 
    31 def parse_patch_output(output_line):
    31 def parsepatchoutput(output_line):
    32     """parses the output produced by patch and returns the filename"""
    32     """parses the output produced by patch and returns the filename"""
    33     pf = output_line[14:]
    33     pf = output_line[14:]
    34     if os.sys.platform == 'OpenVMS':
    34     if os.sys.platform == 'OpenVMS':
    35         if pf[0] == '`':
    35         if pf[0] == '`':
    36             pf = pf[1:-1] # Remove the quotes
    36             pf = pf[1:-1] # Remove the quotes