scripts/unify-sources.sh
changeset 702 c706534d4740
parent 675 586b65073025
child 780 abf31e4af617
     1.1 --- a/scripts/unify-sources.sh	Fri May 08 13:15:29 2009 +0200
     1.2 +++ b/scripts/unify-sources.sh	Fri May 08 16:21:06 2009 +0100
     1.3 @@ -6,6 +6,10 @@
     1.4  function hg_year() {
     1.5      if [ -n "$(hg st $1)" ]; then
     1.6          echo $YEAR
     1.7 +    else
     1.8 +        hg log -l 1 --template='{date|isodate}\n' $1 |
     1.9 +        cut -d '-' -f 1
    1.10 +    fi
    1.11  }
    1.12  
    1.13  # file enumaration modes