3

I made a bug fix on bug fix branch, but now I need to rollback all change on this branch. How to do that? I don't want to revert each file one by one, :(.

Sarstime
  • 184
  • 1
  • 3
  • 14
  • Have you labelled the branch prior to making your changes? If yes, you can merge that label to the latest version of your branch. – Alex R. May 18 '11 at 02:16
  • no, I didn't labelled it. Actually what I need is to revert a change set. – Sarstime May 18 '11 at 02:40
  • How many files are we talking about? You can merge each one with the previous version and use the older one as reference. It's a pain I know – Alex R. May 18 '11 at 03:05
  • hundred of files. That's why i am seeking help here, :). – Sarstime May 19 '11 at 12:25

1 Answers1

4

I didn't test it recently, but check out the perl script available with a ClearCase installation called cset.pl (also available here):

ccperl cset.pl -undo myActivity

It should undo an activity by performing a negative merge (or substractive merge).
(That is, supposing you are using UCM since you are mentioning "changeset", which means "UCM activity")

VonC
  • 1,262,500
  • 529
  • 4,410
  • 5,250
  • this is resolved by a mate who wrote a perl script to revoke each file I touched. Thanks anyway. – Sarstime May 19 '11 at 12:26
  • @Sarstime: excellent. Any chance to see what that script looks like? (in a complementary answer below you would post, with said script content) – VonC May 19 '11 at 12:35
  • sorry, I don't know the detail. As I know, it's just a simple script. He wrote several statements to revoke my changes on that branch. – Sarstime May 23 '11 at 08:15