Patchwork D6370: templatekw: move showfileadds() close to showfile{mods, dels}()

login
register
mail settings
Submitter phabricator
Date May 14, 2019, 10:58 p.m.
Message ID <f354ff0915d0f41f61cfb42ee1a544bf@localhost.localdomain>
Download mbox | patch
Permalink /patch/40026/
State Not Applicable
Headers show

Comments

phabricator - May 14, 2019, 10:58 p.m.
martinvonz updated this revision to Diff 15081.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D6370?vs=15064&id=15081

REVISION DETAIL
  https://phab.mercurial-scm.org/D6370

AFFECTED FILES
  mercurial/templatekw.py

CHANGE DETAILS




To: martinvonz, #hg-reviewers
Cc: mercurial-devel

Patch

diff --git a/mercurial/templatekw.py b/mercurial/templatekw.py
--- a/mercurial/templatekw.py
+++ b/mercurial/templatekw.py
@@ -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."""