Comparing Files or Projects

When working with files and with a project, you might need to compare the current local copy in your working directory with the current master copy in the source-controlled project. This can help you determine whether another user has changed a file, or it can help you pinpoint where you've made changes since you checked out the file.

Most source control systems can only compare and display differences between files if they're in text format. When Visual FoxPro compares forms, reports, menus, labels, and class libraries, it uses the text representations of those files.

Note   If your source control provider doesn't support file comparison options, they aren't available on the menu.

To see differences between projects

  • From the Project menu, choose Source Control, and then choose Show Project Differences.

    The resulting report is produced by your source control software, so the specific information provided can vary. In general, however, the source control system will display a window with two panes, and will highlight or otherwise mark the differences between the local and master copies of the file.

To see differences between files or the project list

  1. If you're viewing differences for a single file, in the Project Manager, select the file for which you want to see differences.

  2. For a single file, from the Project menu, choose Source Control, and then choose Show Differences. For the project list, from the Project menu, choose Source Control, and then choose Show Project List Differences.

    The resulting report is produced by your source control software, so the specific information provided can vary. In general, however, the source control system will display the two versions side-by-side, and will highlight or otherwise mark new, deleted, and changed lines.

See Also

Getting the Latest Versions of Files | Checking for Differences in Forms, Reports, and Other Table Files | Developing in Teams | Management of Files in a Source-Controlled Project