Changeset 572


Ignore:
Timestamp:
12/19/2011 18:16:30 (5 months ago)
Author:
ccowart
Message:

Having confman report its version as part of the commit.

See #152.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/confmanlib.sh.in

    r553 r572  
    100100} 
    101101 
     102function conf_svncommit { 
     103    @SVN@ commit --with-revprop "confman:version=$VERSION" "$@" 
     104} 
     105 
    102106# Checks out the conf tree if we don't already have it. Updates it if we do. 
    103107function conf_checkout_tree { 
     
    278282    # curly brace expansion. 
    279283    if echo "$newmodules" | grep -q ','; then 
    280         @SVN@ commit $(eval echo ${WORK_PATH}/{$newmodules}) \ 
     284        conf_svncommit $(eval echo ${WORK_PATH}/{$newmodules}) \ 
    281285            $(eval echo ${WORK_PATH}/${REPO_CHECKPTS}/{$newmodules}) -m \ 
    282286            "Created directory structure for $newmodules" 
     
    284288        # We test -n for this case because $newmodules might 
    285289        # be empty, i.e. no new modules were created 
    286         @SVN@ commit ${WORK_PATH}/$newmodules \ 
     290        conf_svncommit ${WORK_PATH}/$newmodules \ 
    287291            ${WORK_PATH}/${REPO_CHECKPTS}/$newmodules -m \ 
    288292            "Created directory structure for $newmodules" 
     
    319323    done 
    320324 
    321     @SVN@ commit -F "$msg" $files 
     325    conf_svncommit -F "$msg" $files 
    322326} 
    323327 
     
    853857        @SVN@ add $chkpath 
    854858        local msg="Created a checkpoint, ${checkpoint} for ${module} --`whoami`" 
    855         @SVN@ commit ${WORK_PATH}/${REPO_CHECKPTS} -m "$msg" 
     859        conf_svncommit ${WORK_PATH}/${REPO_CHECKPTS} -m "$msg" 
    856860} 
    857861 
     
    864868        @SVN@ rm ${chkpath} 
    865869        local msg="Removed the checkpoint ${checkpoint} from ${module} --`whoami`" 
    866         @SVN@ commit ${WORK_PATH}/${REPO_CHECKPTS} -m "$msg" 
     870        conf_svncommit ${WORK_PATH}/${REPO_CHECKPTS} -m "$msg" 
    867871} 
    868872 
     
    10331037    done 
    10341038 
    1035     @SVN@ commit -m "Renaming ${oldmod} to ${newmod}" \ 
     1039    conf_svncommit -m "Renaming ${oldmod} to ${newmod}" \ 
    10361040        ${WORK_PATH}/${oldmod} ${WORK_PATH}/${REPO_CHECKPTS}/${oldmod} \ 
    10371041        ${WORK_PATH}/${newmod} ${WORK_PATH}/${REPO_CHECKPTS}/${newmod} \ 
     
    12621266    done 
    12631267 
    1264     @SVN@ commit -F "$logfile" $recipes 
     1268    conf_svncommit -F "$logfile" $recipes 
    12651269} 
    12661270 
Note: See TracChangeset for help on using the changeset viewer.