Changes between Version 4 and Version 5 of Obsolete/Development/Templates/RepUpdate
- Timestamp:
- Jul 24, 2006, 10:45:52 PM (18 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Obsolete/Development/Templates/RepUpdate
v4 v5 9 9 10 10 It 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. 13 16 * Show the differences with `svn status` 14 17 … … 21 24 svn rm --force template_name.tpl 22 25 }}} 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 : 24 27 {{{ 28 # Add one specific template template_name.tpl 25 29 svn add template_name.tpl 30 31 # Add all the files not yet registered in the repository 32 svn add `svn status | grep '^\?' | awk '{print $2}'` 26 33 }}} 27 34