Mercurial hg标签的返回是什么--template";{date | isodate}\n“;
我使用的是Mercurial“HG”,我想知道它的确切输出是什么Mercurial hg标签的返回是什么--template";{date | isodate}\n“;,mercurial,tortoisehg,Mercurial,Tortoisehg,我使用的是Mercurial“HG”,我想知道它的确切输出是什么 hg tags --template "{date|isodate}\n" 准备: -- 现在为标记尝试不同的模板 正常标签输出: hg tags tip 1:e02e6bf615f5 mytag1 0:0970400e2de4 -- 现在,让我们以YYYY-MM-DD短格式尝试标记名称和标记日期: hg tags --template "{tag} {date|shortdate}\n" tip 197
hg tags --template "{date|isodate}\n"
准备:
--
现在为标记尝试不同的模板
正常标签
输出:
hg tags
tip 1:e02e6bf615f5
mytag1 0:0970400e2de4
--
现在,让我们以YYYY-MM-DD短格式尝试标记名称和标记日期:
hg tags --template "{tag} {date|shortdate}\n"
tip 1970-01-01
mytag1 1970-01-01
--
最后,你问的那个(只有ISO日期):
--
如果您对模板过滤器有疑问:
hg help template
开始日期。以ISO 8601格式返回日期:“2009-08-18 13:00+0200”
hg tags --template "{date|isodate}\n"
1970-01-01 00:00 +0000
1970-01-01 00:00 +0000
hg help template