Show More
@@ -535,8 +535,12 if os.name == 'nt': | |||||
535 |
|
535 | |||
536 | def os_rcpath(): |
|
536 | def os_rcpath(): | |
537 | '''return default os-specific hgrc search path''' |
|
537 | '''return default os-specific hgrc search path''' | |
538 | return system_rcpath() + [os.path.join(os.path.expanduser('~'), |
|
538 | path = system_rcpath() | |
539 | 'mercurial.ini')] |
|
539 | path.append(os.path.join(os.path.expanduser('~'), 'mercurial.ini')) | |
|
540 | userprofile = os.environ.get('USERPROFILE') | |||
|
541 | if userprofile: | |||
|
542 | path.append(os.path.join(userprofile, 'mercurial.ini')) | |||
|
543 | return path | |||
540 |
|
544 | |||
541 | def parse_patch_output(output_line): |
|
545 | def parse_patch_output(output_line): | |
542 | """parses the output produced by patch and returns the file name""" |
|
546 | """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