changeset 22553:67b6b82a6bbe

tags: change field name of formatter output to be the same as log command Since -T option is not public yet, this won't break backward compatibility.
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Sep 2014 12:46:23 +0900
parents bb14cca8c4e4
children bfc50ff55f3f
files mercurial/commands.py tests/test-encoding.t
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Sep 21 12:38:47 2014 +0900
+++ b/mercurial/commands.py	Sun Sep 21 12:46:23 2014 +0900
@@ -6013,7 +6013,7 @@
         fm.startitem()
         fm.write('tag', '%s', t, label=label)
         fmt = " " * (30 - encoding.colwidth(t)) + ' %5d:%s'
-        fm.condwrite(not ui.quiet, 'rev id', fmt,
+        fm.condwrite(not ui.quiet, 'rev node', fmt,
                      repo.changelog.rev(n), hn, label=label)
         fm.condwrite(ui.verbose and tagtype, 'type', ' %s',
                      tagtype, label=label)
--- a/tests/test-encoding.t	Sun Sep 21 12:38:47 2014 +0900
+++ b/tests/test-encoding.t	Sun Sep 21 12:46:23 2014 +0900
@@ -184,13 +184,13 @@
   $ hg tags -Tjson
   [
    {
-    "id": "a52c0692f24a",
+    "node": "a52c0692f24a",
     "rev": 5,
     "tag": "tip",
     "type": ""
    },
    {
-    "id": "ca661e7520de",
+    "node": "ca661e7520de",
     "rev": 3,
     "tag": "\xc3\xa9", (esc)
     "type": ""