mercurial/scmutil.py
changeset 30109 96a2278ee732
parent 29996 9766d88c2465
child 30305 af7c60988f6e
child 30320 bff5ccbe5ead
equal deleted inserted replaced
30108:e1e7190457cf 30109:96a2278ee732
   751     else use item.
   751     else use item.
   752     make HGRCPATH empty to only look in .hg/hgrc of current repo.
   752     make HGRCPATH empty to only look in .hg/hgrc of current repo.
   753     if no HGRCPATH, use default os-specific path.'''
   753     if no HGRCPATH, use default os-specific path.'''
   754     global _rcpath
   754     global _rcpath
   755     if _rcpath is None:
   755     if _rcpath is None:
   756         if 'HGRCPATH' in os.environ:
   756         if 'HGRCPATH' in encoding.environ:
   757             _rcpath = []
   757             _rcpath = []
   758             for p in os.environ['HGRCPATH'].split(os.pathsep):
   758             for p in os.environ['HGRCPATH'].split(os.pathsep):
   759                 if not p:
   759                 if not p:
   760                     continue
   760                     continue
   761                 p = util.expandpath(p)
   761                 p = util.expandpath(p)