How to create undo checkout recursively in clearcase in context menu

你离开我真会死。 提交于 2019-12-02 05:28:21

问题


I'm trying to create undo checkout recursively..., context menu with arguments (I'm using clearmenuadmin.exe)

/c cleartool lsco -r -cvi -fmt "unco -rm %n\n"$dir|cleartool

but its not working.. any idea on how to do this..


回答1:


Note: do put a space between the %n\n" and $dir.

In this case, the -fmt part will not ensure the execution, even piped to cleartool

Perhaps

/c cleartool lsco -r -cvi -fmt "cleartool unco -rm %n\n"$dir|cmd

would work, but I doubt it: the problem is visible when considering all the command launched when configure with the clearmenuadmin.exe:

cmd /c cleartool lsco -r -cvi -fmt "cleartool unco -rm %n\n"$dir|cmd

The |cmd or |ct would apply to the first cmd, not to the cleartool command.

I would rather use and external script (to wrap the unco command)

/c myUnco.cmd $dir

with myUnco.cmd stored in a directory referenced by your %PATH% environment variable, with;

cleartool lsco -r -cvi -fmt "cleartool unco -rm %n\n" %1|cleartool

Here (in the .cmd script) %1 represents the $dir passed through the clearcase contextual menu.



来源:https://stackoverflow.com/questions/2012572/how-to-create-undo-checkout-recursively-in-clearcase-in-context-menu

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