equal
deleted
inserted
replaced
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): |