##// END OF EJS Templates
templatekw: add option to include ignored/clean/unknown files in cache...
Yuya Nishihara -
r39635:a5da9063 default
parent child Browse files
Show More
@@ -291,11 +291,14 b' def showextras(context, mapping):'
291 return _hybrid(f, extras, makemap,
291 return _hybrid(f, extras, makemap,
292 lambda k: '%s=%s' % (k, stringutil.escapestr(extras[k])))
292 lambda k: '%s=%s' % (k, stringutil.escapestr(extras[k])))
293
293
294 def _getfilestatus(context, mapping):
294 def _getfilestatus(context, mapping, listall=False):
295 ctx = context.resource(mapping, 'ctx')
295 ctx = context.resource(mapping, 'ctx')
296 revcache = context.resource(mapping, 'revcache')
296 revcache = context.resource(mapping, 'revcache')
297 if 'filestatus' not in revcache:
297 if 'filestatus' not in revcache or revcache['filestatusall'] < listall:
298 revcache['filestatus'] = ctx.p1().status(ctx)
298 stat = ctx.p1().status(ctx, listignored=listall, listclean=listall,
299 listunknown=listall)
300 revcache['filestatus'] = stat
301 revcache['filestatusall'] = listall
299 return revcache['filestatus']
302 return revcache['filestatus']
300
303
301 def _showfilesbystat(context, mapping, name, index):
304 def _showfilesbystat(context, mapping, name, index):
General Comments 0
You need to be logged in to leave comments. Login now