##// END OF EJS Templates
templatekw: move showfileadds() close to showfile{mods,dels}()...
Martin von Zweigbergk -
r42563:b47e9712 default
parent child Browse files
Show More
@@ -295,11 +295,6 b' def _showfilesbystat(context, mapping, n'
295 295 files = stat[index]
296 296 return templateutil.compatfileslist(context, mapping, name, files)
297 297
298 @templatekeyword('file_adds', requires={'ctx', 'revcache'})
299 def showfileadds(context, mapping):
300 """List of strings. Files added by this changeset."""
301 return _showfilesbystat(context, mapping, 'file_add', 1)
302
303 298 @templatekeyword('file_copies',
304 299 requires={'repo', 'ctx', 'cache', 'revcache'})
305 300 def showfilecopies(context, mapping):
@@ -334,6 +329,11 b' def showfilecopiesswitch(context, mappin'
334 329 return templateutil.compatfilecopiesdict(context, mapping, 'file_copy',
335 330 copies)
336 331
332 @templatekeyword('file_adds', requires={'ctx', 'revcache'})
333 def showfileadds(context, mapping):
334 """List of strings. Files added by this changeset."""
335 return _showfilesbystat(context, mapping, 'file_add', 1)
336
337 337 @templatekeyword('file_dels', requires={'ctx', 'revcache'})
338 338 def showfiledels(context, mapping):
339 339 """List of strings. Files removed by this changeset."""
General Comments 0
You need to be logged in to leave comments. Login now