Using the command line how can I reset my workspace so that it becomes an exact replica of server version of changeset I'm on? More specifically, how to get rid of all pending changes, all added and removed files, and everything not yet committed to Plastic? Note that cm unco --all
does not remove "private" files.
1
votes
1 Answers
1
votes
I'm currently using an ugly hack:
FOR /f "tokens=*" %%a in ('cm status --short --private') DO DEL /F /Q "%%a"
cm unco --all --dependencies
Which works okay, however a recent change to cm status
causes it to print an extra Finding changed files took too long. Perf tips: https://www.plasticscm.com/download/help/statusperfhintschanged
at the end, which throws off the for
loop. I haven't found a way to suppress the warning message.