comparison mercurial/scmutil.py @ 14224:f4189866c76c

rename scmutil.os_rcpath to osrcpath
author Adrian Buehlmann <adrian@cadifra.com>
date Fri, 06 May 2011 14:52:25 +0200
parents 21b8ce4d3331
children f0ca440b5722
comparison
equal deleted inserted replaced
14221:680c3c6fcb48 14224:f4189866c76c
358 yield hgname 358 yield hgname
359 else: 359 else:
360 newdirs.append(d) 360 newdirs.append(d)
361 dirs[:] = newdirs 361 dirs[:] = newdirs
362 362
363 def os_rcpath(): 363 def osrcpath():
364 '''return default os-specific hgrc search path''' 364 '''return default os-specific hgrc search path'''
365 path = system_rcpath() 365 path = system_rcpath()
366 path.extend(user_rcpath()) 366 path.extend(user_rcpath())
367 path = [os.path.normpath(f) for f in path] 367 path = [os.path.normpath(f) for f in path]
368 return path 368 return path
388 if f.endswith('.rc'): 388 if f.endswith('.rc'):
389 _rcpath.append(os.path.join(p, f)) 389 _rcpath.append(os.path.join(p, f))
390 else: 390 else:
391 _rcpath.append(p) 391 _rcpath.append(p)
392 else: 392 else:
393 _rcpath = os_rcpath() 393 _rcpath = osrcpath()
394 return _rcpath 394 return _rcpath
395 395
396 if os.name != 'nt': 396 if os.name != 'nt':
397 397
398 def rcfiles(path): 398 def rcfiles(path):