mercurial/util.py
changeset 3131 cff3c58a5766
parent 3098 c27d1e1798a3
child 3145 e4ea47c21480
equal deleted inserted replaced
3130:2e043c9a38a6 3131:cff3c58a5766
   613         rcs = [os.path.join(path, 'hgrc')]
   613         rcs = [os.path.join(path, 'hgrc')]
   614         rcdir = os.path.join(path, 'hgrc.d')
   614         rcdir = os.path.join(path, 'hgrc.d')
   615         try:
   615         try:
   616             rcs.extend([os.path.join(rcdir, f) for f in os.listdir(rcdir)
   616             rcs.extend([os.path.join(rcdir, f) for f in os.listdir(rcdir)
   617                         if f.endswith(".rc")])
   617                         if f.endswith(".rc")])
   618         except OSError, inst: pass
   618         except OSError:
       
   619             pass
   619         return rcs
   620         return rcs
   620 
   621 
   621     def os_rcpath():
   622     def os_rcpath():
   622         '''return default os-specific hgrc search path'''
   623         '''return default os-specific hgrc search path'''
   623         path = []
   624         path = []