CVS - 比较时创建 Zip
在对 CVS 与代码的本地副本进行比较时,我正在寻找一种方法来创建差异的 zip 文件。
示例
**CVS Files**
File1.java
File2.java
**Local Files**
File1.java
File2.java
File3.java
如果我对 CVS 与本地代码进行比较,将会发现 File3.java 是新的,而 File2.java 已更改。 File1.java 未更改,因此在比较时不会显示。 作为这次比较的结果,我正在寻找一种 CVS/Eclipse 创建包含 File3.java 和 File2.java 的 zip 文件的方法。 (忽略 File1.java,因为没有任何改变)
我在浏览 CVS man 或 Eclipse 插件网站时没有看到任何内容。
这主要用于代码审查,作为打包要发送的文件的简单方法。
谢谢
When performing a compare of a CVS vs a local copy of my code, I am looking for a way to create a zip file of the difference.
Example
**CVS Files**
File1.java
File2.java
**Local Files**
File1.java
File2.java
File3.java
If I perform a compare of the CVS vs Local code, it will find that File3.java is new, and that File2.java has changed. File1.java is unchanged so does not show up when comparing.
As a result of this compare, I am looking for a way that CVS/Eclipse will create a zip file containing File3.java and File2.java. (ignoring File1.java as nothing has changed)
I didn't see anything while browsing the CVS man or the Eclipse plugin website.
This will mostly be used for code reviews as a simple way to package files to send.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试打包
cvs diff
从命令行?不知道为什么需要 Eclipse 来执行此操作。
有许多带有 Eclipse 插件的代码审查工具,例如 ReviewBoard、代码协作者,以及 Crucible - 也许使用现有工具会更容易。
Wouldn't it be easier to attempt to package up the output of
cvs diff
from the command line? Not sure why you would need Eclipse to do this.There are a number of code review tools that have plugins for Eclipse, like ReviewBoard, Code Collaborator, and Crucible - perhaps it'd be easier to use an existing tool.
发现最快的方法是进行比较。将比较导出到文件夹。然后压缩对应的文件夹。
不是最有效的,但比手动查找文件夹中的文件更快。
found the quickest method was to perform a compare. Export the compare to a folder. Then zip the corresponding folder.
Not the most efficient, but quicker then manually looking through the folders for my files.