Mercurial > public > mercurial-scm > hg-stable
diff mercurial/util_win32.py @ 6153:09a8be3e5bfb
Also search for .hgrc if mercurial.ini not found on windows
author | Stefan Rank <strank(AT)strank(DOT)info> |
---|---|
date | Wed, 20 Feb 2008 21:31:42 +0100 |
parents | e45de0f47215 |
children | e75aab656f46 |
line wrap: on
line diff
--- a/mercurial/util_win32.py Thu Feb 21 15:00:25 2008 +0100 +++ b/mercurial/util_win32.py Wed Feb 20 21:31:42 2008 +0100 @@ -255,7 +255,8 @@ appdir = shell.SHGetPathFromIDList( shell.SHGetSpecialFolderLocation(0, shellcon.CSIDL_APPDATA)) userdir = os.path.dirname(appdir) - return os.path.join(userdir, 'mercurial.ini') + return [os.path.join(userdir, 'mercurial.ini'), + os.path.join(userdir, '.hgrc')] class posixfile_nt(object): '''file object with posix-like semantics. on windows, normal