自动添加、删除和提交的 CVS 脚本
我正在寻找一个脚本,它获取 CVS 模块的工作副本,执行任何必要的“cvs add”和“cvs remove”命令,并提交所有内容。 最终结果是存储库副本变得与工作副本完全相同。
我想我以前见过类似的东西,但我在谷歌上找不到它。 有人使用过类似的脚本吗? 我知道我可以运行“cvs -nq update”并自己解析结果,这就是我最终可能要做的事情。 但是 CVS 有各种奇怪的边缘情况,所以我想找到一个已经测试过的脚本(如果存在)。
I'm looking for a script which takes a working copy of a CVS module, performs any necessary "cvs add" and "cvs remove" commands, and commits everything. The end result is that the repository copy becomes exactly like the working copy.
I think I've seen something like this before, but I couldn't find it on Google. Does anyone have a similar script that they've used? I know I can run "cvs -nq update" and parse the results myself, and that's what I'll probably end up doing. But CVS has all sorts of weird edge cases, so I'd like to find an already-tested script if it exists.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我为 WinCvs 编写了类似的宏,但仍然与它捆绑在一起。 您可以在宏|CVS|复制到分支/主干下找到它...
它将提示您输入分支名称以将当前选择复制到(如果您希望将其复制到主干,请保留空白),然后进行所有必要的操作除了最终提交之外,您提到的准备工作。
我自己只在实践中使用过它几次,但它已经存在几年了,我没有任何抱怨......
来自文档字符串:
I wrote something similar as a macro for WinCvs that still comes bundled with it. You can find it under Macros|CVS|Copy to branch/trunk...
It will prompt you for a branch name to copy the current selection to (just leave blank if you want it copied to the trunk) and then makes all the necessary preparations you mentioned except for the final commit.
I only used it in practice a couple of times myself but it has been out there for a couple of years now and I haven't had any complaints...
From the docstring: