Updating a Local Copy of a File under Version Control

From Appmethod Topics
Jump to: navigation, search

Go Up to Version Control Systems in the IDE


Updating a file will retrieve all the changes that were committed to that file.

To update a specific file (Subversion only)

  1. In the Project Manager, right-click the file that you want to update. The file must be under source control by Subversion.
  2. In the context menu, select Subversion > Update. Subversion updates the selected file along with any files associated with it.
    For example, form files (.dfm files) are updated when source files are updated.
  3. Examine the results of the Update, displayed in the Subversion tab of the Messages View.


To update a directory or an entire project

  1. In the Project Manager, right-click the folder or the project that you want to update. The project and directory must be under source control by Subversion or Git.
  2. In the context menu, select:
    • For Subversion: Subversion > Update. And then select one of the following subcommands:
      • From Repository Root searches up the directory tree to find the last directory managed by the same repository as the project file and then updates all the files in that directory and below.
      • From Project Directory updates all files in the project directory and below.
      • Files in this Project updates all files (and their associated files) listed in the Project Manager.
    • For Git: Git > Pull. And then select one of the following subcommands:
      • From Repository Root searches up the directory tree to find the last directory managed by the same repository as the project file and then updates all the files in that directory and below.
      • From Project Directory updates all files in the project directory and below.
  3. Examine the results of the Update, displayed in the Subversion or Git tab of the Messages View.

Note: To avoid a conflict between versions, do an update on your local files before you start making changes. If not, you risk commiting an outdated file, which can lead (in Subversion) to lock situations that require using the Clean command.

See Also