AdamH Posted July 14, 2015 Report Share Posted July 14, 2015 Hi all, I'm new to using plastic and have come from a background of git. I have a couple of questions. 1- How do I reset a branch to a given changeset via command line? E.g if the changesets are 0<-1<-2<-3<-4 and I want the branch to go back to the exact state it was in at changeset 2 and continue working from there. I'm happy with either 0<-1<-2<-3<-4<-5 with 5 being a duplicate of 2 or deleting the change sets so the branch looks like 0<-1<-2. I'd prefer the first option though. 2- How do I view which changesets are apart of the current branch (or a specified branch) on the command line? Basically what I'd like is the output from cm log but for a specific branch. Thanks in advance! Link to comment Share on other sites More sharing options...
calbzam Posted July 16, 2015 Report Share Posted July 16, 2015 Hi, 1. Youcan use the next command: cm switchtobranch --changeset=2 2. You can use: cm find changeset where branch = 'main/scm12800' Please, also check: https://www.plasticscm.com/documentation/cmfind/plastic-scm-version-control-query-system-guide.shtml#Chapter1:"cmfind" Regards, Carlos Link to comment Share on other sites More sharing options...
AdamH Posted July 17, 2015 Author Report Share Posted July 17, 2015 Thanks Carlos! I'll give these a go and let you know how I go. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.