如何在 Eclipse 中的源文件夹之间递归移动包并更新 CVS?
因此,我需要将一个大包从默认的 src
移动到另一个名为 test
的源文件夹。我通过简单地移动文件系统上的目录然后刷新 Eclipse 来完成此操作。就 Eclipse 而言,一切都很顺利。
但是,问题是复制并没有更改这些文件夹中的 CVS 元数据。现在,每次我与 CVS 同步时,它都会在更新或删除包中的所有文件之间切换。
如何递归地移动包而不引起 CVS 问题?同样,这对包名称没有影响,只对正在使用的源文件夹有影响。
So I needed to move a large package from the default src
to another source folder called test
. I did this by simply moving the directory on the file system then refreshing Eclipse. Everything went fine as far as Eclipse is concerned.
However, the problem is copying did not change the CVS metadata that was in those folders. Now every time I synchronize with CVS it will switch between wanting to update or remove all the files in the package.
How do you recursively move a package without causing CVS problems? Again, this has no effect on the package names, just on the source folder being used.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我已经在 Eclipse 中多次进行目录移动,没有出现任何问题。在 Eclipse 本身内(而不是在外部文件系统中)进行移动,CVS 插件将跟踪所有移动,因此下次与存储库同步时,它将显示已删除的内容(在文件中用减号标记) GUI)以及已添加的内容(在 GUI 中用加号标记)。请注意,您将丢失 Eclipse GUI 中已移动文件的历史记录,该历史记录将在 v1.1 中恢复。
I've done directory moves many times in Eclipse without issue. Do the move within Eclipse itself (not in your external filesystem) and the CVS plugin will keep track of all the moves, so the next time you synch with your repository, it will show what things have been deleted (marked with minus signs in the GUI) and what has been added (marked with plus signs in the GUI). Note that you will lose your history in the Eclipse GUI for the moved files, which will be back at v1.1.
好吧,看来我需要做的就是手动移动包文件夹,然后
在文件夹中删除所有 CVS 信息,然后再刷新并与 CVS 同步。
Okay, it seems that all I needed to do was manually move the package folder then do
in the folder to remove all the CVS information before refreshing and synchronizing with CVS.