equal
deleted
inserted
replaced
32 progrcd = os.path.join(os.path.dirname(filename), b'hgrc.d') |
32 progrcd = os.path.join(os.path.dirname(filename), b'hgrc.d') |
33 if os.path.isdir(progrcd): |
33 if os.path.isdir(progrcd): |
34 for f, kind in util.listdir(progrcd): |
34 for f, kind in util.listdir(progrcd): |
35 if f.endswith(b'.rc'): |
35 if f.endswith(b'.rc'): |
36 rcpath.append(os.path.join(progrcd, f)) |
36 rcpath.append(os.path.join(progrcd, f)) |
37 # else look for a system rcpath in the registry |
37 # next look for a system rcpath in the registry |
38 value = util.lookupreg( |
38 value = util.lookupreg( |
39 b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE |
39 b'SOFTWARE\\Mercurial', None, winreg.HKEY_LOCAL_MACHINE |
40 ) |
40 ) |
41 if not isinstance(value, bytes) or not value: |
41 if not isinstance(value, bytes) or not value: |
42 return rcpath |
42 return rcpath |