网豆+反复无常地推动他人
我有 2 个存储库:在 Bitbucket 和我自己的服务器上。 Bitbucket 存储库用于测试,我自己的服务器是生产存储库。
我有以下 .hgrc 内容:
[paths]
default = ssh://[email protected]/fancymedia/fancymedia-website
production = ssh://[email protected]/www/fancymedia.ru/www
因此,第一行“default”适用于 Bitbucket,第二行是生产路径。 它允许我在这样的终端中执行一个技巧:
hg push /* it makes a push to bibucket as a default path */
hg push production /* it pushes to my production server */
我想要的就是在 Netbeans 中执行相同的操作,是的,我可以推送到默认路径,但我无法仅使用短别名推送到我的生产服务器'生产',每次都必须输入服务器的所有路径......
有什么想法吗?
I have 2 repos: at the Bitbucket and at my own server. Bitbucket repo is for testing and my own server is a production repo.
I have the following .hgrc contents:
[paths]
default = ssh://[email protected]/fancymedia/fancymedia-website
production = ssh://[email protected]/www/fancymedia.ru/www
So the first line with "default" is for Bitbucket, the second one is a production path.
It allows me do a trick in a terminal like that:
hg push /* it makes a push to bibucket as a default path */
hg push production /* it pushes to my production server */
All i want is to do the same in Netbeans, yes i can make a push to a default path, but i can't push to my production server just using a short alias 'production', every time a have to type all the path to the server...
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我查看了 源对于 Mercurial 与 NetBeans 的集成,并且无法扩展菜单。它只是 使用“Push Other...”和“Pull Other...”的单个菜单项创建。
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...".
NetBeans only read the
default
,default-push
, anddefault-pull
values from the[paths]
section in your.hg/hgrc
file. I agree that 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.