Fix the faulty merge of unify-sources.sh in [586b65073025]
authorAlpar Juttner <alpar@cs.elte.hu>
Fri, 08 May 2009 16:21:06 +0100
changeset 702c706534d4740
parent 701 a312f84d86c6
child 703 cb38ccedd2c1
Fix the faulty merge of unify-sources.sh in [586b65073025]
scripts/unify-sources.sh
     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