In order to have the IDE display the correct VCS status for your files, you need to have the Refresh and Refresh Recursively commands properly configured. These commands are configured for the CVS, VSS, and PVCS profiles. However, if you are creating your own VCS profile, you may need to write your own Refresh and Refresh Recursively commands.
Your version control system should return information about the files in a one file system object per line format. 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
You can get this data to be processed in a form usable by the IDE by typing a regular expression into the Data Regex property, which is listed on the property sheet for the command in the Command Editor.
An example of a data regex that would process this data into a form usable by the IDE would be ^([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 property sheet for the Refresh and Refresh Recursively properties also have index properties for File, Status, Locker, Revision, Sticky, Time, Date, Size, and Additional Attribute. These are group indexes referring to the data regex to determine in which sort group of the regex each of these pieces of information can be found. 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 |