将多个 CVS 项目合并为一个

发布于 2024-07-10 19:12:01 字数 268 浏览 3 评论 0原文

我有几个相关的 CVS 项目,我想将它们移动到一个新项目的子目录中。

假设使用这些项目的每个人都会在我进行更改之前删除其工作副本。 按照建议手册中? 我还需要做其他事情吗?

保留文件的历史记录非常重要,因此我不想删除它们并将其重新提交到新位置。

I have several related CVS projects, and I'd like to move them into subdirectories of a single new project.

Let's assume that everyone using the projects will delete their working copies before I make the change. Is it safe to just go into the repository directory and move the directories, as suggested in the manual? Do I need to do anything else?

It's very important that I preserve the files' history, so I don't want to just delete and re-commit them in the new location.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

作妖 2024-07-17 19:12:01

在 CVS 存储库中进行修改是标准做法。 但是,不要移动目录,而是考虑复制它们(这称为 repocopy),然后通过正常的 CVS 命令删除原始位置中的文件。 这样,即使您的更改也将被记录为历史的一部分。

不用说,在进行任何更改之前,请对 CVS 文件进行完整备份,

Doing modifications in the CVS repository is standard practice. However, instead of moving the directories, consider copying them (this is called a repocopy), and then deleting the files in their original locations through normal CVS commands. In this way even your change will be recorded as part of the history.

Needless to say, keep a full backup of your CVS files before you do any changes,

挖鼻大婶 2024-07-17 19:12:01

是的,那会起作用的。

Yes, that will work.

a√萤火虫的光℡ 2024-07-17 19:12:01

是的,正如其他人所说,这会起作用,但保留备份以防万一。 另外,您可能想研究 Subversion (http://subversion.tigris.org/) 作为 CVS 的替代品。 我推迟了很长一段时间才从 CVS 迁移到 Subversion,但现在我很后悔自己没有早点这么做。 类似这样的任务在 Subversion 中是微不足道的,而且由于 Subversion 从一开始就是作为 CVS 的替代品而设计的,所以迁移实际上并没有那么痛苦。

Yes, as the other people have said, that will work, but keep a backup just in case. Also you might want to investigate Subversion (http://subversion.tigris.org/) as a replacement for CVS. I put off migrating from CVS to Subversion for a long time but now I'm kicking myself for not doing it much sooner. Tasks like this are trivial in Subversion, and since Subversion was designed from the beginning as a replacement for CVS, the migration is really not that painful.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文