Jump to content

Discard all changes in CLI


Konstantin

Recommended Posts

Hello!

 

I have a build script that works with same workspace. Before building it must switch the workspace to latest changeset of a specified branch.

This is done with following code (Powershell)

cm stb --workspace=$Workspace br:$Branch

Unfortunately, if the workspace contains any changes (new files, edited files) this operation will fail.

How can I discard all changes in the workspace or switch it to another changeset from any state?

 

(I do not care about losing the changes, this workspace is for script usage only.)

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...