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

martinvonz (Martin von Zweigbergk) phabricator at mercurial-scm.org
Sat May 25 13:41:14 EDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rHGb47e9712000b: templatekw: move showfileadds() close to showfile{mods,dels}() (authored by martinvonz, committed by ).

REPOSITORY
  rHG Mercurial

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

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

AFFECTED FILES
  mercurial/templatekw.py

CHANGE DETAILS

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)
 
- at 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)
 
+ at 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."""



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


More information about the Mercurial-devel mailing list