changeset 607:f5d8179656d1

hg tags with datetime.
author Oleksandr Gavenko <gavenkoa@gmail.com>
date Thu, 31 Dec 2015 23:01:24 +0200
parents 473d1ef4f8d2
children 04a2f06f92d8
files dvcs/Makefile dvcs/myhg-tags
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dvcs/Makefile	Thu Dec 31 09:51:27 2015 +0200
+++ b/dvcs/Makefile	Thu Dec 31 23:01:24 2015 +0200
@@ -32,7 +32,7 @@
 .PHONY: check
 check:
 
-HG_BIN_FILES := myhg-nearest-tag
+HG_BIN_FILES := myhg-nearest-tag myhg-tags
 GIT_BIN_FILES := mygit-nearest-tag mygit-glog mygit-tags
 BIN_FILES := $(HG_BIN_FILES) $(GIT_BIN_FILES)
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/dvcs/myhg-tags	Thu Dec 31 23:01:24 2015 +0200
@@ -0,0 +1,4 @@
+#!/bin/sh
+
+exec hg log -r "sort(tag(),-date)" --template '{date|isodate} {node|short} {label("tags.normal", tags)}\n'
+