Patchwork D7689: windows: clarify a comment about the hgrc search path

login
register
mail settings
Submitter phabricator
Date Dec. 18, 2019, 3:49 a.m.
Message ID <differential-rev-PHID-DREV-6flygmjvabe37vxknmpn-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/43945/
State Superseded
Headers show

Comments

phabricator - Dec. 18, 2019, 3:49 a.m.
mharbison72 created this revision.
Herald added a subscriber: mercurial-devel.
Herald added a reviewer: hg-reviewers.

REVISION SUMMARY
  The exe relative hgrc.d and the registry paths are not mutually exclusive.

REPOSITORY
  rHG Mercurial

REVISION DETAIL
  https://phab.mercurial-scm.org/D7689

AFFECTED FILES
  mercurial/scmwindows.py

CHANGE DETAILS




To: mharbison72, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/scmwindows.py b/mercurial/scmwindows.py
--- a/mercurial/scmwindows.py
+++ b/mercurial/scmwindows.py
@@ -34,7 +34,7 @@ 
         for f, kind in util.listdir(progrcd):
             if f.endswith(b'.rc'):
                 rcpath.append(os.path.join(progrcd, f))
-    # else look for a system rcpath in the registry
+    # next look for a system rcpath in the registry
     value = util.lookupreg(
         b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE
     )