如何使用Eclipse在雪豹上设置Mercurial [英] How to set up Mercurial on Snow Leopard with Eclipse

查看:141
本文介绍了如何使用Eclipse在雪豹上设置Mercurial的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的Macbook上使用Eclipse与C ++插件,尝试一些实践项目来提高我的技能。我也想测试Mercurial,品尝DVCS。不幸的是,Eclipse + Mercurial + OSX似乎是一个很少的组合,那里没有很多有用的文档。



我迄今为止做了什么:




  • 已安装Mercurial SCM

  • 安装 HgEclipse 插件

  • 已安装GnuPG

  • 设置GnuPG和hg的路径Eclipse中的可执行文件首选项> Team> Mercurial



我知道我可以通过导航到终端中的目录,将目录转换为hg存储库,使用

  hg init 

然后我可以添加文件与

  hg add 
hg commit

这应该给我一个hg repo与我的文件。到目前为止,这么好...但现在我开始蹒跚。



如何让HgEclipse指向我的回购?我的同步视图有一个Mercurial选项,但是当我选择它时,下一步按钮将变灰,完成按钮不会执行任何操作。



理想情况下,我想设置两个本地存储库,一个个人和一个团队回购,所以我可以真正评估Hg,因为这似乎是受欢迎的配置。 HgEclipse是否只支持单个回购的承诺,还是可以承诺到本地的回购,并将推送到团队回购?



任何DVCS兽医的其他建议如何最好地建立我的环境?

解决方案

要点eclipse在您本地的回购,有两种主要方式。




  • 文件 - >导入 - > Mercurial - >克隆(从repo开始一个新项目)

  • (右键单击项目) - >团队 - >分享项目 - > Mercurial



(请参阅



当你上了并运行您可以通过Team push / pull菜单项推/拉到另一个存储库。




  • (右键单击Project) - > Team - >拉...

  • (右键单击项目) - >团队 - >推送...


I'm using Eclipse with C++ plugins on my macbook, trying some practice projects to improve my skills. I'd also like to test out Mercurial and get a taste of DVCS. Unfortunately, Eclipse + Mercurial + OSX seems to be a rare enough combination that there isn't a lot of helpful documentation out there.

What I've done so far:

I know I can turn a directory into an hg repository by navigating to that directory in terminal and using

hg init

and then I can add files with

hg add
hg commit

This should give me an hg repo with my files in it. So far, so good...but now I begin to falter.

How do I get HgEclipse pointed to my repo? My synchronize view has a Mercurial option, but when I select it, the Next button is grayed out, and the Finish button doesn't do anything...

Ideally, I would like to set up two local repositories, one personal and one "team" repo, so I can really evaluate Hg as this seems to be the popular configuration. Does HgEclipse only support commits to a single repo, or can it commit to the local repo and push to the "team" repo?

Any other suggestions from DVCS vets on how best to set up my environment?

解决方案

To point eclipse at your local repo there are two main ways.

  • File -> Import -> Mercurial -> Clone (Starting a new Project from a repo)
  • (right click Project) -> Team -> Share Project -> Mercurial

(see How to turn on Mercurial in existing Eclipse project ?)

When you are up and running you can Push/Pull to another repository via the Team push/pull menu item.

  • (right click Project) -> Team -> Pull ...
  • (right click Project) -> Team -> Push ...

这篇关于如何使用Eclipse在雪豹上设置Mercurial的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆