如何重命名我的 CVS 项目?

发布于 2024-08-12 09:03:58 字数 129 浏览 6 评论 0原文

我刚刚开始使用 CVS 来管理我的源文件。完成学校作业后,我发现我在 cvsroot 中使用了错误的项目名称。由于提交系统正在目录中查找特定的项目名称,因此尽管我的源文件都在该目录中,但它拒绝了我的提交。有没有办法改变CVS中的项目名称?谢谢!

I just started using CVS to manage my source files. After finishing my school assignment, I found out that I had used the wrong project name in my cvsroot. Since the submit system is looking for a specific project name in the directory, it denies my submission although my source files are all in that directory. Is there a way to change the name of the project in CVS? Thanks!

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

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

发布评论

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

评论(4

情愿 2024-08-19 09:03:58
  1. 确保所有内容都已签入,并且最好与任何其他用户进行协调
  2. 如果您在 Eclipse 中,请关闭项目(可选)
  3. 在 cvs 服务器上,将 CVSROOT 中项目的目录名称重命名为您想要的任何名称 (mv existing_directory new_directory )
  4. 返回 cvs 客户端,照常导入项目(当然,这将是一个新项目,在本例中名为 new_directory)
  5. (可选)一旦确定所有文件都已成功,请删除客户端上的旧目录(高度)可能!)

注意:当然,引用旧目录名称的任何其他项目都将被“破坏”,并且现在必须引用新目录名称

  1. Make sure everything is checked in, and best to coordinate this with any other users
  2. If you are in Eclipse, close the project (optional)
  3. On the cvs server, rename the directory name for your project in CVSROOT to whatever you want (mv existing_directory new_directory)
  4. Back on the cvs client, import the project as usual (it will be a new project, of course, named new_directory in this example)
  5. (Optional) Delete the old directory on the client once you are sure all the files made it (highly likely!)

NOTE: Of course, any other projects referencing the old directory name will be "broken" and have to now reference the new directory name

丿*梦醉红颜 2024-08-19 09:03:58

只需重命名 CVSROOT 中的文件即可。
CVS 很愚蠢,它不在乎重命名。

Just rename the file in CVSROOT.
CVS is dumb, it don't care renaming.

玉环 2024-08-19 09:03:58

为什么不使用正确的名称创建一个新的 cvs 存储库,并将源文件复制到新的存储库,然后添加并提交。您的特定项目的历史对审阅者来说重要吗?

Why don't you just make a new cvs repository with the proper name and copy your source files over to the new one, then add and commit. Is the history of your particular project important for the reviewers?

小耗子 2024-08-19 09:03:58
  1. 将 CVSROOT 中项目的目录名称重命名为 newProjectName
  2. 回到您的工作目录,找到文件 CVS/Repository,打开它并将其中的项目名称更改为 newProjectName

这就是我的做法,并且成功了。

  1. rename the directory name for your project in CVSROOT to newProjectName
  2. back to your working directory, find the file CVS/Repository, open it and change the project name in there to newProjectName

that's how I did it, and it worked.

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