Jump to content

How to find the latest in Changeset number in a given Repository


Nick D

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...