如何在上下文菜单中以清除方式递归创建撤消签出 [英] How to create undo checkout recursively in clearcase in context menu

查看:59
本文介绍了如何在上下文菜单中以清除方式递归创建撤消签出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试递归创建撤消结帐...,带有参数的上下文菜单(我正在使用 clearmenuadmin.exe

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..

推荐答案

注意:请在%n\n $ dir

在这种情况下, -fmt 部分将无法确保执行,甚至无法通过管道传递给cleartool

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

也许

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

可以工作,但是我对此表示怀疑:考虑使用 clearmenuadmin.exe 配置时启动的命令 all 时,该问题显而易见:

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

| cmd | ct 将适用于第一个cmd,而不适用于cleartool命令。

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

我宁愿使用和外部脚本(用于包装 unco 命令)

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

/c myUnco.cmd $dir

将myUnco.cmd存储在%PATH%环境变量引用的目录中,其中;

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

此处(在 .cmd 脚本中)%1 表示通过clearcase上下文菜单传递的 $ dir

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

这篇关于如何在上下文菜单中以清除方式递归创建撤消签出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆