##// 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 387 b'requires',
388 388 ]
389 389
390 REVLOG_FILES_EXT = (b'.i', b'.d', b'.n', b'.nd')
391
390 392
391 393 def isrevlog(f, kind, st):
392 394 if kind != stat.S_IFREG:
393 395 return False
394 if f[-2:] in (b'.i', b'.d', b'.n'):
395 return True
396 return f[-3:] == b'.nd'
396 return f.endswith(REVLOG_FILES_EXT)
397 397
398 398
399 399 class basicstore(object):
General Comments 0
You need to be logged in to leave comments. Login now