eclipse 删除之前创建的 CVS 标签

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7928838/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 17:15:09  来源:igfitidea点击:

delete CVS tag that was created earlier

eclipsecvs

提问by Mohan

Please let me know how to delete a CVS tag which was already created from eclipse.

请让我知道如何删除已经从 eclipse 创建的 CVS 标签。

If the tag is removed, can a new tag be created with same name?

如果标签被移除,是否可以创建一个同名的新标签?

回答by Tim Dawson

I don't think there's a way from Eclipse...you'll have to go to the command line and run:

我认为 Eclipse 没有办法……您必须转到命令行并运行:

cvs tag -d <tag> <file/directory>

or if the tagged files are no longer on your system:

或者如果标记的文件不再在您的系统上:

cvs rtag -d <tag> <location_in_repository>

回答by user1387219

If your aim is to replace the tagged code with the new one, you can simply tag the current code with the same tag name of the existing tag, but be sure to check the option "move tag if already exists".

如果您的目标是用新标记替换标记代码,您可以简单地使用与现有标记相同的标记名称标记当前代码,但一定要选中“如果标记已经存在,则移动标记”选项。

回答by Tony Rickelman

So you actually can do this from Eclipse. You can hit it from a number of ways, 2 places I've seen it are:

因此,您实际上可以从 Eclipse 执行此操作。您可以通过多种方式点击它,我见过的两个地方是:

  1. Configure Branches and Versionsif you right click on a branch or version in the CVS Repository Exploring view you will see this option
  2. Configure Tagsif you do a compare on a project or file in your Java view you will see this option.
  1. 如果在 CVS Repository Exploring 视图中右键单击分支或版本,则配置分支和版本,您将看到此选项
  2. 配置标签如果您在 Java 视图中对项目或文件进行比较,您将看到此选项。

From there there's a section in the middle called remembered tags for these projectsand next to that is the Remove button that can be clicked after you select the tag in question.

从中间有一个部分称为这些项目的记住标签,旁边是删除按钮,您可以在选择相关标签后单击该按钮。

回答by Miguel13366

You can delete your tag and create a new one with the same name.

您可以删除您的标签并创建一个同名的新标签。

You can even commit into your tag (you should not do that).

你甚至可以提交你的标签(你不应该这样做)。

I dont know how to do this with eclipse, I used always Tortoise client.

我不知道如何用 Eclipse 做到这一点,我一直使用 Tortoise 客户端。