Netbeans/Mercurial - 在“团队 ->”下定义多个推/拉存储库分享”菜单?

发布于 2025-01-04 00:19:22 字数 518 浏览 1 评论 0原文

在 Netbeans w/Mercurial 中,您有一个菜单,其中列出了默认的推/拉存储库以及“其他”选项,用于手动指定要推/拉的存储库:

push/pull menu

我的“默认推/拉”设置为我们的中央存储库,但我的工作存储库首先被拉入临时存储库。不用说,我可以在“共享”菜单中使用更多项目,而不仅仅是“默认推/拉”。有没有办法定义更多,所以它看起来像:

- 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:

push/pull menu

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 技术交流群。

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

发布评论

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

评论(1

帅的被狗咬 2025-01-11 00:19:22

我查看了 源对于 Mercurial 与 NetBeans 的集成,并且无法扩展菜单。它只是 使用“Push Other...”和“Pull Other...”的单个菜单项创建

Mercurial 实际上有一种机制,您可以通过该机制向其他存储库添加快捷方式

[paths]
default = http://server/mike-transcodes-719
my-other-repo-1 = ssh://server/other-repo11
my-other-repo-2 = http://server/other-repo-2

:您现在可以在 .hg/hgrc 文件中添加这样的部分,您现在可以

$ hg pull my-other-repo-1

在命令行上执行此操作。但是,NetBeans 仅从 [paths] 读取 defaultdefault-pushdefault-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:

[paths]
default = http://server/mike-transcodes-719
my-other-repo-1 = ssh://server/other-repo11
my-other-repo-2 = http://server/other-repo-2

With such a section in your .hg/hgrc file, you can now do

$ hg pull my-other-repo-1

on the command line. However, NetBeans only read the default, default-push, and default-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.

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