eclipse 如何从 MercurialEclipse 插件存储库位置字段中删除旧存储库 URL
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3275335/
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
How to remove old repository URL from MercurialEclipse plugins repository location field
提问by Fuu
I've a mercurial repository to which I push my changes with eclipses MercurialEclipse plugin, using Team -> Push. Now the repository URL has changed, and eclipse always remembers the old url in the input field, which is preselected as default, and I need to select the new one from the pull down list. Very small problem, but annoying none the less.. Is there a way to clear the old value from the field, so that I don't always need to pick the URL manually until the end of time?
我有一个 mercurial 存储库,我使用 Eclipse MercurialEclipse 插件将更改推送到该存储库,使用 Team -> Push。现在repository URL 已经改变了,eclipse 总是记住输入字段中的旧url,这是默认预选的,我需要从下拉列表中选择新的。非常小的问题,但仍然令人讨厌.. 有没有办法从字段中清除旧值,这样我就不需要在时间结束之前手动选择 URL?
Alternatively, how to change the default repository entry to be the new one?
或者,如何将默认存储库条目更改为新条目?
回答by Fuu
Found out myself that you can change the default by right clicking on repository -> properties -> mercurial -> change default repository. Also allows for deleting the old repository URL from the same interface.
发现自己可以通过右键单击存储库 -> 属性 -> mercurial -> 更改默认存储库来更改默认值。还允许从同一界面删除旧的存储库 URL。
回答by colinjwebb
If none of the other answers work, you can go to [your_eclipse_workspace]\.metadata\.plugins\com.vectrace.MercurialEclipse
and look at repositories.txt and the corresponding repositories.txt for the project.
如果其他答案都不起作用,您可以转到[your_eclipse_workspace]\.metadata\.plugins\com.vectrace.MercurialEclipse
并查看项目的 repositories.txt 和相应的 repositories.txt。
I deleted some URLs in both, and now they've disappeared :)
我删除了两者中的一些 URL,现在它们已经消失了 :)
回答by zorro2b
In Eclipse Helios team synchronize view you can click on "Synchronize..." from the toolbar. This will let you switch the repo used for sync.
在 Eclipse Helios 团队同步视图中,您可以单击工具栏中的“同步...”。这将让您切换用于同步的存储库。
回答by hariprasad
In Eclipse Mars I solved it this way:
在 Eclipse Mars 中,我是这样解决的:
- You Simply clone repository as a new one.
- Old repository you can right click->Remove. Mercurial doesn't remove the content. Only the his own metadata. So it is safe operation. (In Git be careful and do hard copy for certainty.)
- In project Explorer on the project right click->Propertieswe cannot modify repository but we can add or remove another one.
- In menu above Project->Clean(whole workspace).
- Restart Eclipse.
- 您只需将存储库克隆为一个新存储库。
- 您可以右键单击旧存储库- >删除。Mercurial 不会删除内容。只有他自己的元数据。所以是安全操作。(在 Git 中要小心,并为确定性做硬拷贝。)
- 在项目资源管理器中,右键单击-> 属性,我们无法修改存储库,但可以添加或删除另一个存储库。
- 在Project->Clean(整个工作区)上方的菜单中。
- 重新启动 Eclipse。
Maybe some steps are obsolete, but the old repository was very resistant for removal. So I described all steps which I used.
也许有些步骤已经过时了,但是旧的存储库非常难以删除。所以我描述了我使用的所有步骤。