MattK
MattK

Reputation: 1551

How To Delete File From RTC Changeset Using CLI

I'm using the RTC 3.0.1 CLI (lscm) and I have a file checked into a changeset that I would like to delete. There doesn't appear to be a straightforward way to do this, any idea?

Upvotes: 1

Views: 1781

Answers (2)

VonC
VonC

Reputation: 1325137

From what I can see in the help page, there is also one workaround:
relocate a file from one change set to another.

Upvotes: 0

MattK
MattK

Reputation: 1551

I hate answering my own question, but I figured it out. Perhaps this will help others.

RTC really makes you think about source control in a different way than SVN, or even git. In order to delete a file from an RTC changeset, you just remove the file locally and checkin the directory.

$ rm myfile
$ cd .. 
$ lscm checkin mydir

Undoing changes with the 'undo' command

$ lscm undo myfile

Here is a rosetta stone of sorts for the RTC CLI that clued me in: Git v Subversion v RTC

Upvotes: 5

Related Questions