dwicks Posted May 4, 2022 Report Share Posted May 4, 2022 I want to check in all changed, moved, and added files to my plastic repo. I am using partial mode because I have a large amount of files and I'm using the command line so I can automate the checkin of files that I create through other automated tooling. I expect `cm partial checkin . --all --dependencies` to checkin everything that has changed or been added, but it doesn't. Is there an extra flag I'm missing? As you can see in the screenshot, `cm status` shows the same added files both before and after the checkin. 1 Link to comment Share on other sites More sharing options...
ollieblanks Posted May 9, 2022 Report Share Posted May 9, 2022 Please add the --private flag so that all private items detected in the workspace are also included. Hope this helps! Link to comment Share on other sites More sharing options...
dwicks Posted May 9, 2022 Author Report Share Posted May 9, 2022 Thanks for the suggestion. Adding the `--private` flag yields the following error: Quote partial: Unexpected option --private I am also trying various command combinations to try to get the desired result. For example: cm add --recursive .\** cm findprivate -R | cm add - Where I run in to trouble with multiple commands is addressing moved/deleted files. The recursive add seems to break Plastic's knowledge of moved files (it sees the old locations as deleted once the new ones are added). And I'm unable to sort out how to remove the deleted files because the output of `cm status --localdeleted --short --machinereadable` is not pipeable into `cm rm -` or `cm add -`. I see an error like the following when trying to pipe into rm, and the status command doesn't accept a format parameter to allow me to narrow it down to just the file paths. Quote e:\Binaries\STVisualizer_project\Mods\STATUS -1 Properties socialtables@cloud is not in a workspace. e:\Binaries\STVisualizer_project\Mods\LD e:\Binaries\STVisualizer_project\Mods\SomeFiles\Content\BuiltData.uasset False NO_MERGES is not in a workspace Link to comment Share on other sites More sharing options...
dwicks Posted May 9, 2022 Author Report Share Posted May 9, 2022 (edited) If you can share what commands the "check all" button in the Gluon gui is executing, that would be perfect for my needs. The gui is able to do this work just fine, but the cli (needed for automation) doesn't seem to have the right set of commands easily available. Edited May 9, 2022 by dwicks adding screenshot Link to comment Share on other sites More sharing options...
dwicks Posted May 10, 2022 Author Report Share Posted May 10, 2022 I am currently doing a kind of nasty workaround to not being able to pipe the status into `cm rm` so I can remove locally deleted files like so: $LocalDeletedStatus = -Split (cm status --localdeleted --machinereadable) Write-Host "Local deleted: $LocalDeletedStatus" $DeletedFiles = $LocalDeletedStatus | Where-Object {$_ -Match "Mods\\+"} if ($DeletedFiles) { Write-Host "Removing deleted files from plastic: $DeletedFiles" (cm rm $DeletedFiles) } I match on a file path component that I know will be part of the file paths I want to remove. If the `cm status` command accepted a format parameter OR it could be piped into `cm rm`, that would be a lot nicer. I would welcome any suggestions for a cm-command-only version of the above. Thanks! Link to comment Share on other sites More sharing options...
ollieblanks Posted May 20, 2022 Report Share Posted May 20, 2022 Apologies I should have been more specific with my suggestion. I was suggesting to run the command like this cm checkin --private, but of course this can't be used in your scenario with Gluon. I ran a quick test of the original scenario you reported and I suspect this may be a bug. Thank you for reporting it, I'll pass on my findings to the development team now. Link to comment Share on other sites More sharing options...
ollieblanks Posted June 27, 2022 Report Share Posted June 27, 2022 I'm happy to let you know that in 11.0.16.7110 the --private flag has been added to cm partial commands! Please see release notes here. 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