Changeset 418


Ignore:
Timestamp:
09/18/2009 13:09:36 (3 years ago)
Author:
ccowart
Message:

Merging update enhancement from trunk.

Fixes #60

Location:
branches/confman-1.9
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • branches/confman-1.9

    • Property svn:mergeinfo changed
      /trunkmerged: 417
  • branches/confman-1.9/Makefile.am

    r397 r418  
    11BASH = @BASH_SHELL@ 
    2  
    3 VERSION += (397) 
    42 
    53bashcompdir = $(sysconfdir)/bash_completion.d 
  • branches/confman-1.9/configure.ac

    r390 r418  
    11AC_PREREQ(2.62) 
    2 AC_INIT([confman], [1.9.a], [confman-users@timesinks.net]) 
     2AC_INIT([confman], [1.9.2b], [confman-users@timesinks.net]) 
    33AM_INIT_AUTOMAKE([foreign]) 
    44 
  • branches/confman-1.9/confman.8.in

    r388 r418  
    110110.Nm . 
    111111It will check out your working copy. setup takes no additional arguments. 
    112 .It Cm update 
     112.It Cm update [ Ar options ] 
    113113The update command will update all the modules in your working copy. This 
    114 command does not alter the repository or the system. 
     114Any options specified will be passed directly to  
     115.Xr svn 1 . This can be used 
     116for updating your working copy to an older revision.  
     117 
     118For example, you could use `confman update -r '{20090801}' www` to look at the 
     119state of the module named `www' as of 1 August 2009. This will re-add any 
     120deleted files and delete any added files from your working copy (This is 
     121simplest if you have commited any outstanding changes, but subversion is good 
     122about not deleting work-in-progress -- the errors can just be confusing).  
     123 
     124Note that before any install or commit operation, there is an implicit update 
     125that will cause the latest repository revision to be reflected in your working 
     126copy.  command does not alter the repository or the system. 
    115127.It Cm commit 
    116128The commit command causes your changes to take effect.  
  • branches/confman-1.9/confman.in

    r388 r418  
    9898 
    9999function update { 
    100     if [ -z "$*" ] ; then 
    101         conf_lock_wcopy 
    102             conf_update_tree || exit 1 
    103         conf_unlock_wcopy 
    104     else 
    105             print_usage 1 
    106     fi 
     100    conf_lock_wcopy 
     101    conf_update_tree "$@" || exit 1 
     102    conf_unlock_wcopy 
    107103} 
    108104 
  • branches/confman-1.9/confmandoc.sh

    r355 r418  
    3636  $MYNAME [ help | -h ] [ command ] 
    3737  $MYNAME setup 
    38   $MYNAME update 
     38  $MYNAME update [ options ] 
    3939  $MYNAME commit 
    4040  $MYNAME diff [ working_copy ] 
     
    135135 
    136136Usage: 
    137   $MYNAME update 
    138  
    139 The update command will update your working copy of all the modules 
    140 appearing in the current host's recipe file. This command does not alter 
    141 the repository. 
     137  $MYNAME update [ options ] 
     138 
     139With no arguments, the update command will update your working copy of all 
     140the modules appearing in the current host's recipe file. This command does 
     141not alter the repository. 
     142 
     143Any options specified will be passed directly to svn(1). This can be used 
     144for updating your working copy to an older revision. Note that before any 
     145install or commit operation, there is an implicit update that will cause 
     146the latest repository revision to be reflected in your working copy. 
    142147 
    143148EOF 
  • branches/confman-1.9/confmanlib.sh.in

    r415 r418  
    117117# Updates the whole source tree 
    118118function conf_update_tree { 
    119         @SVN@ update ${WORK_PATH} 
     119    if [ -z "$*" ] ; then 
     120        @SVN@ update ${WORK_PATH} 
     121    else 
     122        @SVN@ update "$@" 
     123    fi 
    120124} 
    121125 
Note: See TracChangeset for help on using the changeset viewer.