##// END OF EJS Templates
move os_rcpath from util to scmutil
Adrian Buehlmann -
r13985:26335a81 default
parent child Browse files
Show More
@@ -296,6 +296,13 b' def walkrepos(path, followsym=False, see'
296 newdirs.append(d)
296 newdirs.append(d)
297 dirs[:] = newdirs
297 dirs[:] = newdirs
298
298
299 def os_rcpath():
300 '''return default os-specific hgrc search path'''
301 path = util.system_rcpath()
302 path.extend(util.user_rcpath())
303 path = [os.path.normpath(f) for f in path]
304 return path
305
299 _rcpath = None
306 _rcpath = None
300
307
301 def rcpath():
308 def rcpath():
@@ -319,5 +326,5 b' def rcpath():'
319 else:
326 else:
320 _rcpath.append(p)
327 _rcpath.append(p)
321 else:
328 else:
322 _rcpath = util.os_rcpath()
329 _rcpath = os_rcpath()
323 return _rcpath
330 return _rcpath
@@ -1083,13 +1083,6 b' def ellipsis(text, maxlength=400):'
1083 except (UnicodeDecodeError, UnicodeEncodeError):
1083 except (UnicodeDecodeError, UnicodeEncodeError):
1084 return _ellipsis(text, maxlength)[0]
1084 return _ellipsis(text, maxlength)[0]
1085
1085
1086 def os_rcpath():
1087 '''return default os-specific hgrc search path'''
1088 path = system_rcpath()
1089 path.extend(user_rcpath())
1090 path = [os.path.normpath(f) for f in path]
1091 return path
1092
1093 def bytecount(nbytes):
1086 def bytecount(nbytes):
1094 '''return byte count formatted as readable string, with units'''
1087 '''return byte count formatted as readable string, with units'''
1095
1088
General Comments 0
You need to be logged in to leave comments. Login now