Mercurial > hg
comparison mercurial/posix.py @ 14231:8abe4db2d162
rename util.parse_patch_output to parsepatchoutput
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Fri, 06 May 2011 15:19:48 +0200 |
parents | 78bdfc756908 |
children | df2399663392 |
comparison
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 |