changeset 42371:b47e9712000b

templatekw: move showfileadds() close to showfile{mods,dels}() Differential Revision: https://phab.mercurial-scm.org/D6370
author Martin von Zweigbergk <martinvonz@google.com>
date Sat, 11 May 2019 00:17:42 -0700
parents c2d10506725c
children ba6ca4e80607
files mercurial/templatekw.py
diffstat 1 files changed, 5 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/templatekw.py	Fri May 24 15:38:50 2019 +0300
+++ b/mercurial/templatekw.py	Sat May 11 00:17:42 2019 -0700
@@ -295,11 +295,6 @@
     files = stat[index]
     return templateutil.compatfileslist(context, mapping, name, files)
 
-@templatekeyword('file_adds', requires={'ctx', 'revcache'})
-def showfileadds(context, mapping):
-    """List of strings. Files added by this changeset."""
-    return _showfilesbystat(context, mapping, 'file_add', 1)
-
 @templatekeyword('file_copies',
                  requires={'repo', 'ctx', 'cache', 'revcache'})
 def showfilecopies(context, mapping):
@@ -334,6 +329,11 @@
     return templateutil.compatfilecopiesdict(context, mapping, 'file_copy',
                                              copies)
 
+@templatekeyword('file_adds', requires={'ctx', 'revcache'})
+def showfileadds(context, mapping):
+    """List of strings. Files added by this changeset."""
+    return _showfilesbystat(context, mapping, 'file_add', 1)
+
 @templatekeyword('file_dels', requires={'ctx', 'revcache'})
 def showfiledels(context, mapping):
     """List of strings. Files removed by this changeset."""