mercurial/scmwindows.py
changeset 22583 23c995ed466b
parent 18712 e3ddb4068757
child 26625 adae8928fe09
--- a/mercurial/scmwindows.py	Mon Sep 29 23:23:44 2014 -0700
+++ b/mercurial/scmwindows.py	Thu Sep 04 21:36:35 2014 +0200
@@ -40,7 +40,7 @@
     path = [os.path.join(home, 'mercurial.ini'),
             os.path.join(home, '.hgrc')]
     userprofile = os.environ.get('USERPROFILE')
-    if userprofile:
+    if userprofile and userprofile != home:
         path.append(os.path.join(userprofile, 'mercurial.ini'))
         path.append(os.path.join(userprofile, '.hgrc'))
     return path