Mercurial for Google Code 的几个小技巧

为了方便改本站主题,我把代码放在了 Google Code 上,一冲动把代码管理工具选成了 Mercurial 而不是熟悉的 SVN,Mercurial 操作起来跟 Git 差不多,但配置碰到一些小问题。
1. 无法象 SVN 一样记住登录密码
解决办法:打开 .hg/hgrc ,默认是这样的:

[paths]
default = https://projectname.googlecode.com/hg

把密码和用户名填到 URL 里就行啦

[paths]
default = https://accountname:password@projectname.googlecode.com/hg

2. 提示没有设置用户名
解决办法:在 .hg/hgrc 中添加

[ui]
username = Dongsheng Cai

2 comments to Mercurial for Google Code 的几个小技巧

  1. liwei says:

    冲动是魔鬼!!!

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>