Reverting a users changes in ClearCase

拈花ヽ惹草 提交于 2020-01-02 17:22:37

问题


We use ClearCase as control version system.

In our system sometimes we make releases without some developers commits because of time limit.

For example I made some changes in six classes but another user did changes in all or some of them also. And I have to commit code without his changes. So I scan my files with previous versions so that I can revert his changes. But it's a slow and boring process.

Is there another way to do that? Maybe an extension or a script?


回答1:


The only way to automate that process is through:

  • subtractive merge or negative merge (as described in this IBM article):
    cleartool merge -to filename -delete -ver \main\branch\version_number

  • cset.pl, which can take all the checkins of an UCM activity and cancel them.
    See "Clearcase: how to rollback all changes on specific branch?".
    But this is for UCM (which might not be your case)

In both cases, the idea is to create a new version which cancels the version of your other developer.



来源:https://stackoverflow.com/questions/13233681/reverting-a-users-changes-in-clearcase

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!