Jump to content

dwicks

Members
  • Posts

    8
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by dwicks

  1. In git, I can use `git checkout branchname -- path/to/file.uasset` to pull a version of a file from another branch into my working branch. I have not found an equivalent command in plastic, and have resorted to `cm switch branchname`, copy + paste file to desktop, `cm switch workingbranch`, copy and paste file from desktop to replace contents. Since that workaround is very painful (especially if there are lots of other files that have changed between branches and need download), I'd love to be pointed in the right direction for a simple Plastic command to switch the version of a single file (or directory) to match what is seen on a different branch. The changes don't necessarily match up with a single changeset that could be cherry-picked, so that's sadly not an option. Thanks!
  2. Thanks! That list command works for us (I just omit the -R to get top-level directories only). Using the status lets us get the latest changeset that we can refer to. cm status --head
  3. Is there a guide for working with branches in partial mode? After configuring my workspace in one branch, if I switch branches in Gluon, the files I configured to show locally disappear. This makes it feel like each branch in a partial workspace is entirely separate from the other branches, with no meaningful communication between them. Ideally, I would be able to have feature branches for work in partial mode. I am imagining a workflow where I do the following: 1. Configure my repository in Gluon on the main branch to pick the folder I want to work in 2. Switch to a feature branch for my work on that folder 3. Commit changesets to my feature branch along the way 4. Merge my feature branch into main 5. Repeat back at 1 with these changes or any others
  4. I am managing a large amount of binary data in a partial-mode repository. Gluon is able to list all the top-level directories when I enter the "configure" mode, but I can find a CLI command that lets me enumerate the top-level directories in partial mode. If I had a full checkout, I could simply run `Get-ChildItem . -Name`. But since I am in partial mode, I don't actually have any content in my directory yet. How can I use the Plastic CLI to get a list of all directories that are valid options for passing to `cm partial configure +/DIrectoryName`? Thanks!
  5. 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!
  6. 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.
  7. Thanks for the suggestion. Adding the `--private` flag yields the following error: 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.
  8. 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.
×
×
  • Create New...