scripts/unify-sources.sh
branch1.1
changeset 844 c01a98ce01fd
parent 675 586b65073025
child 780 abf31e4af617
     1.1 --- a/scripts/unify-sources.sh	Thu May 07 02:05:12 2009 +0200
     1.2 +++ b/scripts/unify-sources.sh	Tue May 12 12:09:55 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