givetimetolife Posted February 9, 2023 Report Share Posted February 9, 2023 I think plasitcscm has a problem with the design of `checkout` and `undocheckout`. Let's look at an example first: echo 'new changes' > file.txt cm status --xml ... <Changes> <Change> <Type>CH</Type> <TypeVerbose>Changed</TypeVerbose> <Path>file.txt</Path> ... cm co file.txt Item file.txt was correctly checked out cm status file.txt --xml ... <Changes> <Change> <Type>CO</Type> <Path>file.txt</Path> <TypeVerbose>Checked-out</TypeVerbose> <Path>file.txt</Path> ... cm unco file.txt file.txt unchecked out correctly cm status *** Why are all my changes to file.txt undone after I call `unco` *** *** Why are all my changes to file.txt undone after I call `unco` *** As described by cm undocheckout -h , file.txt should revert to the type of `Changed`, and the modifications remain unchanged ``` If an item is checked-out and you do not want to checkin it, you can undo the checkout using this command. Both files and folders can be unchecked out. The item will be updated to the state it had before checking it out. ``` If it is the current design, I can achieve it through `cm undo`, why design a `cm undocheckout` ? This confuses me, please help me Link to comment Share on other sites More sharing options...
blue Posted February 13, 2023 Report Share Posted February 13, 2023 Hi @givetimetolife, Have you tried to use -k parameter? Link to comment Share on other sites More sharing options...
givetimetolife Posted February 14, 2023 Author Report Share Posted February 14, 2023 hi @blue,Thanks for your help, I got the behavior I wanted with `cm undo -k`. My default language is CN, `cm undo -h` has no option -keepchanges.... 😢 Link to comment Share on other sites More sharing options...
blue Posted February 14, 2023 Report Share Posted February 14, 2023 Hi @givetimetolife, can you please confirm if you are on the latest version of Plastic SCM(https://www.plasticscm.com/download) and make sure you are using the global version of Plastic SCM? Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now