Changes between Version 4 and Version 5 of Obsolete/Development/Templates/RepUpdate


Ignore:
Timestamp:
Jul 24, 2006, 10:45:52 PM (18 years ago)
Author:
/C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Obsolete/Development/Templates/RepUpdate

    v4 v5  
    99
    1010It is quite important not to break the history when a template is moved from one location to another or removed. And the trunk is not a direct copy of a real repository. To help updating the trunk from a real Quattor configuration database, you should use [source:templates/trunk/tools/directory-sync directory-sync] tool. '''This tool must be run from a local workspace of QWG [source:templates/trunk repository trunk]'''. This tool updates a trunk directory with the contents of a specified source, doing the following :
    11  * Removes all `.tpl` files from the destination directory (the directory to update).
    12  * Copy all .tpl files from the source directory (built by appending destination directory name to source directory root)
     11 * For each directory existing both in QWG repository and in source tree :
     12   * Removes all `.tpl` files from the destination directory (the directory to update).
     13   * Copy all .tpl files from the source directory (built by appending destination directory name to source directory root)
     14 * For each directory in the source tree and not in the repository, copy the tree from the source tree and add files to SVN QWG repository.
     15 * For each directory in the repository but no longer in the source tree, do a `svn rm` of the directory.
    1316 * Show the differences with `svn status`
    1417
     
    2124svn rm --force template_name.tpl
    2225}}}
    23  * Else, if the template is present in the workspace but not registered into the repository ((flagged `?` by `svn status`) and this is a new template, it should be added to the repository with command :
     26 * Else, if the template is present in the workspace but not registered into the repository ((flagged `?` by `svn status`) and this is a new template, it should be added to the repository with one of theses commands :
    2427{{{
     28# Add one specific template template_name.tpl
    2529svn add template_name.tpl
     30
     31# Add all the files not yet registered in the repository
     32svn add `svn status | grep '^\?' | awk '{print $2}'`
    2633}}}
    2734