Changing the type for an object

You can change the type of a specific file or directory. When you change a type, a version of the object is created with the specified type. If the specified object is in the working state, it is replaced with a new object, and the specified object is deleted from the database.

If the object is a member of a project and you execute the change_type command within the project, Synergy replaces the old object with a new object. If the parent directory is not modifiable, it is automatically checked out for you. The project must be writable by you.

The command fails if the object is a member of more than one project. The command also fails if you do not execute the command within the project where the object is a member.

About this task

ccm change_type -t|-type new_type [-task task_spec] file_spec
file_spec
Specifies the file or directory to be changed. See File specification for details.
-task task_spec
Associates an automatically checked out directory and new object with the specified task. If the current task is set and you do not specify a different task, the checked out directory and new object are automatically associated with the current task.

You can set task_spec to a single task. Setting task_spec to be a blank string means that "no task" is not supported.

-type new_type
Specifies the new type for the object. You can set new_type to a single object.

Feedback