##// END OF EJS Templates
On Windows look for mercurial.ini in $USERPROFILE, too, if available...
Thomas Arendsen Hein -
r2280:09ed4422 default
parent child Browse files
Show More
@@ -535,8 +535,12 if os.name == 'nt':
535 535
536 536 def os_rcpath():
537 537 '''return default os-specific hgrc search path'''
538 return system_rcpath() + [os.path.join(os.path.expanduser('~'),
539 'mercurial.ini')]
538 path = system_rcpath()
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 545 def parse_patch_output(output_line):
542 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