Show More
@@ -426,8 +426,12 b" if os.name == 'nt':" | |||||
426 | else: |
|
426 | else: | |
427 | nulldev = '/dev/null' |
|
427 | nulldev = '/dev/null' | |
428 |
|
428 | |||
429 | rcpath = map(os.path.normpath, |
|
429 | hgrcd = '/etc/mercurial/hgrc.d' | |
430 | ('/etc/mercurial/hgrc', os.path.expanduser('~/.hgrc'))) |
|
430 | hgrcs = [] | |
|
431 | if os.path.isdir(hgrcd): | |||
|
432 | hgrcs = [f for f in os.listdir(hgrcd) if f.endswith(".rc")] | |||
|
433 | rcpath = map(os.path.normpath, hgrcs + | |||
|
434 | ['/etc/mercurial/hgrc', os.path.expanduser('~/.hgrc')]) | |||
431 |
|
435 | |||
432 | def parse_patch_output(output_line): |
|
436 | def parse_patch_output(output_line): | |
433 | """parses the output produced by patch and returns the file name""" |
|
437 | """parses the output produced by patch and returns the file name""" |
General Comments 0
You need to be logged in to leave comments.
Login now