Netbeans/Mercurial - 在“团队 ->”下定义多个推/拉存储库分享”菜单?
在 Netbeans w/Mercurial 中,您有一个菜单,其中列出了默认的推/拉存储库以及“其他”选项,用于手动指定要推/拉的存储库:
我的“默认推/拉”设置为我们的中央存储库,但我的工作存储库首先被拉入临时存储库。不用说,我可以在“共享”菜单中使用更多项目,而不仅仅是“默认推/拉”。有没有办法定义更多,所以它看起来像:
- Share --- Push to default --- Push to my-other-repo-1 --- Push to my-other-repo-2 --- Push to other --- Pull from default --- Pull from my-other-repo-1 --- Pull from my-other-repo-2 --- Pull from other
目前我只是选择“从其他存储库中提取”,但每次都必须手动输入其他存储库的信息。
In Netbeans w/Mercurial you have a menu that lists your default push/pull repositories along with an option for "other" to manually specify a repository to push/pull:
My "default push/pull" is set to our central repository, but my working repositories are pulled into a staging repository first. Needless to say, I could use more items in the "Share" menu than just "default push/pull". Is there a way to define more, so it would look something like:
- Share --- Push to default --- Push to my-other-repo-1 --- Push to my-other-repo-2 --- Push to other --- Pull from default --- Pull from my-other-repo-1 --- Pull from my-other-repo-2 --- Pull from other
Currently I just select "pull from other" but then have to manually type in the other repositories' information each time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我查看了 源对于 Mercurial 与 NetBeans 的集成,并且无法扩展菜单。它只是 使用“Push Other...”和“Pull Other...”的单个菜单项创建。
Mercurial 实际上有一种机制,您可以通过该机制向其他存储库添加快捷方式
:您现在可以在
.hg/hgrc
文件中添加这样的部分,您现在可以在命令行上执行此操作。但是,NetBeans 仅从
[paths]
读取default
、default-push
和default-pull
值.hg/hgrc
文件中的部分。在菜单中包含其他推/拉路径本来是明智的做法,但它们被忽略了。这是从 NetBeans 7.1 版开始的,希望将来会有所改变。
I looked in the source for the Mercurial integration with NetBeans and it is not possible to extend the menu. It is simply created with a single menu item for "Push Other..." and "Pull Other...".
Mercurial actually has a mechanism whereby you can add shortcuts to other repositories:
With such a section in your
.hg/hgrc
file, you can now doon the command line. However, NetBeans only read the
default
,default-push
, anddefault-pull
values from the[paths]
section in your.hg/hgrc
file. It would have been smart to include other push/pull paths in the menu, but they're ignored.This is as of NetBeans version 7.1, hopefully this changes in the future.