Tip: Use the following method to completely import the history of the VSS file to CC. 1. VSS import data to CC1.1. user permission settings
For VisualSource Safe, you must have full permissions on all projects/files in the Visual Source Safe system;
For the ClearCase side, perform operations as the ClearCase administrator;
Therefore, it is best to use the same account (with the same password) and have the above two permissions during migration.
1.2. date/time format settings
During the migration process, ClearCase has strict time requirements and uses short time formats. The specific settings are as follows:
1. Open the region settings attribute of the control panel and select English (US) as the region );
2. In the time bar, set the time style to "h: mm: ss tt ";
Set the time separator ":";
Set the morning symbol to "AM ";
Set the afternoon symbol to "PM ";
Note the case sensitivity of the preceding settings!
3. In the date column, set the short date style to "M/d/yy ";
Set the date separator "/";
After setting, you can view the time attribute of the file in the resource manager to check whether the preceding settings are correct. Correct modification should be: 5/21/01 AM
1.3. environment variable settings
To facilitate the operation, you can add the following system environment variables:
Variable name |
Variable value |
Function |
path |
Example: C: \ VSS \ win32; |
Ss.exe path in VSS |
Example: "C: \ Program Files \ IBM \ RationalSDLC \ ClearCase \ bin "; |
Clearexport_ssafe.exe path in clearcase |
1.4. export data from VSS
Perform these steps to export data from VSS:
- Open a command line and make sure that the PATH variable contains the PATH of your VSS installation directory.
- Use appropriate authentication methods to map the VSS repository to a network drive.
- Set the following environment variables:
- Set SSDIR = V :\{ mapped drive of the VSS repository}/{local VSS repository directory}, for example: set ssdir = C: \ VSS_DATA or set ssdir = U :\
- Set TMP = c: \ temp
- Set SSUSER = <valid user name who has access to vss repository>, for example: set ssuser = ccadm
- Set SSPWD = <VSS password of above user-id>, for example: set sspwd = 1
- Set the project directory to be exported in VSS, for example, ss cp $/jsgs. Export the project named jsgs under the root directory.
- Run the following command to verify the current project: ss cp
- Use the following command to export the VSS project directory to a folder:
Clearexport_ssafe-r-o C: \ VSS_TEMP \ jsgs, where VSS_TEMP is an existing Directory, jsgs is a new directory, and must be imported to the new directory
- If there is no error, the exported file will exist after the export command is completed successfully.
1.5. import data to CC
In this step, you need to import the data file exported in the previous step to the ClearCase repository.
Note: 1. You must change the English (US) to Chinese (China) in the region setting attribute; otherwise, the imported data is garbled.2. If you do not use UCM when creating your target ClearCase, this may be the last step in your transformation process. However, if this type of import is created by UCM, you must convert the Base ClearCase directory to the UCM component. Moreover, the clearimport command cannot be used in the UCM view environment, so that the import can only be run in the BaseClearCase view environment.
Now you can start the import process:
- Create Base ClearCase VOB, for example, sparknetpvob (if it is not created yet .)
- Create the Base ClearCase view ccadm_view2_sparknetpvob (if it is not created yet .)
- Open the command line and cd to the VOB directory, for example, cd M: \ ccadm_view2_sparknetpvob \ JSGS_C
- Run clearimport C: \ VSS_TEMP \ jsgs.
- The above operation data has been imported into the VOB of clearcase.
Reference: scmlife, IBM developerworks. I forgot my post...