changeset 197:514e564db240

command "--show": write a match indication '*' if the file matches the given selection
author Franz Glasner <hg@dom66.de>
date Sat, 06 Oct 2018 15:30:02 +0200
parents d6ce48feffd5
children caf53dafd2d8
files extensions/timestamps.py
diffstat 1 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/extensions/timestamps.py	Sat Oct 06 15:21:40 2018 +0200
+++ b/extensions/timestamps.py	Sat Oct 06 15:30:02 2018 +0200
@@ -201,22 +201,23 @@
             fm.startitem()
             fm.condwrite(not ui.debugflag and ui.verbose and f == "/version/",
                          "version",
-                         "version=%d\n",
+                         "   version=%d\n",
                          ts[f])
             fm.condwrite(not ui.debugflag and ui.verbose and f == "/encoding/",
                          "encoding",
-                         "encoding=%s\n",
+                         "   encoding=%s\n",
                          ts[f])
             fm.condwrite(not ui.debugflag and ui.verbose and f.startswith("/comment-"),
                          "comment",
-                         "%s\n",
+                         "   %s\n",
                          ts[f])
             fm.condwrite(not ui.debugflag and ui.verbose and f.startswith("/-"),
                          "",
-                         "\n")
+                         "   \n")
             fm.condwrite(ui.debugflag or not f.startswith("/"),
-                         "date file",
-                         "%s\t%s\n",
+                         "match date file",
+                         " %s %s\t%s\n",
+                         '*' if matcher(f) else ' ',
                          ts[f],
                          f)