##// END OF EJS Templates
store: use `endswith` to detect revlog extension...
marmoute -
r47112:374d7fff default
parent child Browse files
Show More
@@ -387,13 +387,13 b' def _calcmode(vfs):'
387 b'requires',
387 b'requires',
388 ]
388 ]
389
389
390 REVLOG_FILES_EXT = (b'.i', b'.d', b'.n', b'.nd')
391
390
392
391 def isrevlog(f, kind, st):
393 def isrevlog(f, kind, st):
392 if kind != stat.S_IFREG:
394 if kind != stat.S_IFREG:
393 return False
395 return False
394 if f[-2:] in (b'.i', b'.d', b'.n'):
396 return f.endswith(REVLOG_FILES_EXT)
395 return True
396 return f[-3:] == b'.nd'
397
397
398
398
399 class basicstore(object):
399 class basicstore(object):
General Comments 0
You need to be logged in to leave comments. Login now