Search the Community
Showing results for tags 'command line'.
Found 3 results
Hello, I am trying to automate deleting workspaces by calling commend line code though python. But I'm running into an issue of when i try to delete an active workspace it throws errors, and i have to close and open plastic multiple times to make it reset. Is there a way to simply make a workspace active? I know i can switch my workspace to a branch or changeset but i don't see anything about making it active or not. There was a similar question to this one in the forum but the answer didn't give any info about actually switching the workspace.
As part of our automated build process, we want to undo all changes and delete all added files (ignored and hidden) before building so that we're starting from a completely clean changeset. We've experimented with various cm.exe options, but haven't found any combination that does what we're trying to do. As a workaround, we typically delete the entire directory (with rmdir /s /q) and check it back out, but occasionally the directory doesn't delete successfully; one of the background processes such as an antivirus or plasticscmshellextensionproxy.exe probably has lock on it. What's the preferred way to completely clean a changeset? Thanks in advance.