scripts/unify-sources.sh
changeset 790 1870cfd14fb6
parent 628 586b65073025
child 733 abf31e4af617
equal deleted inserted replaced
10:f30822fd30e0 11:1a19c734c2be
     4 HGROOT=`hg root`
     4 HGROOT=`hg root`
     5 
     5 
     6 function hg_year() {
     6 function hg_year() {
     7     if [ -n "$(hg st $1)" ]; then
     7     if [ -n "$(hg st $1)" ]; then
     8         echo $YEAR
     8         echo $YEAR
       
     9     else
       
    10         hg log -l 1 --template='{date|isodate}\n' $1 |
       
    11         cut -d '-' -f 1
       
    12     fi
     9 }
    13 }
    10 
    14 
    11 # file enumaration modes
    15 # file enumaration modes
    12 
    16 
    13 function all_files() {
    17 function all_files() {