Rule Builder > Working with Repositories in CVS > Managing Repository Elements with the CVS Plug-in > Updating Files From CVS

When you want to update a file, use the CVS Update command. The newest revision of the file is extracted from CVS and put in your working copy of the module. If no newer revision exists, performing an update has no effect.

The CVS Update command enables you to perform a recursive update on the selected item and synchronize the working copy of the JRules repository with the files on the CVS server. You may have to perform a Refresh operation on the Project File Explorer after performing an update if the explorer does not show the content that you are expecting. If you get an element not found message during the update, carry out a Reload operation.

The CVS Update command can be used to retrieve files that are not in the local copy of your JRules repository.
Note
A successful CVS Update command always results in read-only files. To be able to edit the files, you must carry out a CVS Edit command on them.

To carry out an update:

  1. Click the images/update_cvsa.png button in the Teamwork toolbar or right-click the element in the Project File Explorer and then click CVS Update on the shortcut menu.
  2. images/cvs_updateextent.png
  3. In the CVS Update window you can:
    1. Create missing directories that exist in the CVS repository--whether the update should include any new directories that have been added to CVS since the local working copy was last updated.
    2. Retrieve revision / tag / branch--whether the update should only retrieve files from CVS that match the revision number, tag, or branch supplied.
  4. Click OK.

Before the actual CVS Update command is called, the CVS Update action first checks for files that have been removed locally, but which are present in CVS. If locally removed files are found, then a list of these files is displayed and you are asked whether you want to remove these files from CVS.

The JRules repository files are reloaded following a successful CVS Update, unless the update has resulted in the creation of conflict files.
Important
Conflicts should not occur while using the Rule Builder CVS plug-in. However, conflicts could occur if you use another CVS tool with the Rule Builder to edit the files.

You must take care with the CVS Update command under these circumstances. If after performing a CVS Update command a conflict occurs, you must resolve the conflict to ensure the JRules repository remains consistent. You can perform this task directly on the conflict file outside of the Rule Builder by editing the XMI file manually.

CVS will refuse to check in a file if a conflict occurred and you have not resolved the conflict. To resolve a conflict, you must change the timestamp on the file.

Alternatively, you can simply select one of the two files. In this case, you will of course lose the modifications of the file that is not chosen.

See Also

Querying CVS for an Update | Reloading Repository Elements


Customer Support | Copyright © 1987-2004 ILOG S.A. All rights reserved. Legal terms. PREVIOUS   NEXT