Nick D Posted January 26, 2022 Report Share Posted January 26, 2022 Hello, I was wondering if anyone on here could help me with something that seems like it should be fairly simple. I'm trying to figure out a way to determine the latest changeset number in a given repository via Plastic CLI. I found this thread in regards to what appears to be the same issue: But unfortunately the answer to this thread doesn't actually address what I need. Link to comment Share on other sites More sharing options...
calbzam Posted January 27, 2022 Report Share Posted January 27, 2022 Hi, cm find changeset --format={id} --nototal Regards, Carlos. 1 Link to comment Share on other sites More sharing options...
Nick D Posted January 27, 2022 Author Report Share Posted January 27, 2022 Thank you so much. While that didn't give me exactly what I was looking for (that returned changeset ID whereas I needed changeset number), I was able to modify it a bit and get the result I was looking for with this in Powershell: $Changesets = cm find changesets --nototal $LatestChangeset = ($Changesets[-1] -Split "\s+")[1] 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