To have the IDE display the correct VCS status for your files, you must properly configure the Refresh and Refresh Recursively commands. These commands are already configured for the CVS, VSS, and PVCS profiles. However, if you are creating your own VCS profile, you might need to write your own Refresh and Refresh Recursively commands.
Your version control system should return file information in a format that displays one filesystem object per line. Directories are distinguished by a slash (/) character after the file name. Your version control system's output from the Refresh command should look something like this:
doc/ Up-to-date release/ Up-to-date bck/ Up-to-date Test1.java Up-to-date Test2.java Locally-modified Test3.java Up-to-date Test4.java Not-in-view filesystem.atributes Not-in-view
To convert file information data into a form that the IDE can use, type a POSIX regular expression, or regex, into the Data Regex property. This property is listed on the property sheet for the command in the command editor.
An example of a data regex that would correctly process this data is ^([a-zA-Z0-9_-/\.]*) (.*$) This regex generates two groups, indexed 0 and 1. Group 0 matches the file name. Group 1 matches the status.
The command editor for the Refresh and Refresh Recursively commands also contains index properties for File, Status, Locker, Revision, Sticky, Time, Date, Size, and Additional Attribute. These properties specify which sort group of the processed file information contains each of these pieces of information. For example, if the data regex returns the file name in sort group 0, set the File Index property to 0. If your version control system does not return information in a given category, set that category's group index to -1.
See Modifying VCS Command Parameters and Variables for general information on configuring VCS commands.
See also | |
---|---|
Variables in VCS Commands VCS Command Properties Creating a Custom VCS Profile Calling Version Control Commands |