wiki:Obsolete/Development/Templates/RepUpdate

Version 1 (modified by /C=FR/O=CNRS/OU=UMR8607/CN=Michel Jouvin/emailAddress=jouvin@…, 18 years ago) (diff)

--

Updating QWG Repository Trunk

Table of Contents

    Normal development process for templates is to develop templates in a Quattor configuration database, where you can deploy the new templates in a real (test or production) environment. Only after, you have validated the modification in your environment, you should update the QWG repository.

    New or modified templates should always been committed to the QWG repository trunk first, never directly in a branch or tag.

    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 directory_sync tool. This tool must be run from a local workspace of QWG repository trunk. This tool updates a trunk directory with the contents of a specified source, doing the following :

    • Removes all .tpl files from the destination directory (the directory to update).
    • Copy all .tpl files from the source directory (built by appending destination directory name to source directory root)
    • Show the differences with svn status

    As you run this tool from a SVN workspace, you always have the opportunity to do a svn revert in case things went wrong...

    You need to fix manually the unexpected differences. Unexpected differences are all the templates that existed in the repository but no longer exist in the local workspace or all the templates copied from the source but not registered in the repository. There are 3 situations :

    • A template has been renamed or moved. In this case, you should revert the change for this template, do the relevant svn mv and rerun directory_sync to avoid breaking the template modification history.