BackFirst PageNext

Managing Files in Source Control

Although every source control system offers an array of options for managing source files, all systems provide three basic functions for files that are in the system:

Check In options

Some source control systems provide options for protecting the local copy of a file after it is added or checked in. The system can flag the local file as Read-Only or remove it from the local directory. If a local copy of a file is edited after it is checked in, the changes are overwritten when the file is checked out again. Check your source control system's documentation for available options.

Command options

HomeSite provides a variety of ways to access source control commands:

The availability of commands for the selected file is based on the file's current status in the source control system.

Adding Files and Subdirectories

As your development project progresses, you can add files and subdirectories to source control.

To add a new file to source control:

  1. Save the new file in the appropriate subdirectory of the working directory.
  2. Add the file to the HomeSite project.
  3. You will be prompted to add the file to source control.

To create a new subdirectory:

  1. Add the subdirectory to your working directory.
  2. Create a new folder in the correct location in the HomeSite project.
  3. Add a file to the subdirectory and then add the file to the appropriate folder in the HomeSite directory.
  4. Add the file to source control. When you add the file, it automatically creates a new subproject for the new folder in the HomeSite project.

Synchronizing Files

A significant feature of source control for team development is the ability to update your working directory as files are added, changed, and removed from source control by team members. You can run these maintenance procedures based on the level of source control activity of your team.

To synchronize project files with source control:

  1. Right-click on a project in the Project Folder pane to open the context menu.
  2. Select Synchronize with Source Control. The dialog contains tabs for adding and removing local files based on their status in source control.

To add files from source control to your working directory:

  1. Click the Add tab in the Synchronize Projects dialog.
  2. The list shows files in source control that are not in your local project.
  3. Click the list check box of the files you want to add, click Add, and click Close to update the local project.

To remove local files:

  1. Click the Remove tab in the Synchronize Projects dialog.
  2. The list shows local files that are not in the source control project.
  3. Click the list check box of the files you want to remove, click Remove, and click Close to update the local project.


BackFirst PageNext

allaire

AllaireDoc@allaire.com
Copyright © 1998, Allaire Corporation. All rights reserved.