Chinaunix首页 | 论坛 | 博客
  • 博客访问: 622915
  • 博文数量: 201
  • 博客积分: 3076
  • 博客等级: 中校
  • 技术积分: 2333
  • 用 户 组: 普通用户
  • 注册时间: 2009-08-02 19:44
文章分类

全部博文(201)

文章存档

2010年(118)

2009年(83)

我的朋友

分类:

2010-06-24 15:51:32

repository <------------------> working directory


hg help   hg help -v  (--verbose)

hg log    hg log -r n    (--rev)
hg log -v -r n -p  (verbose, patch)
hg log -r n1:n2

hg clone from to

hg commit

hg incoming another-repo
hg pull another-repo
hg update
(hg pull -u)
                                                                            The “hg pull” command that we ran in section 2.8.1 brought changes into the repository, but if we check, there’s no sign of those changes in the working directory. This is because “hg pull” does not (by default) touch the working directory. Instead, we use the “hg update” command to do this.

hg outgoing
hg push
-----------------------------------------------
hg heads
多个head,不能用hg update, 应该用 hg merge
hg commit

hg pull/push 作用于repository,需要hg update更新到working directory
hg merge作用于working directory, 需要hg commit更新到repository
---------------------------------------
hg init
hg status
hg add

hg remove
hg remove --after  (missing file)

hg revert
hg addremove
阅读(690) | 评论(0) | 转发(0) |
0

上一篇:gcc

下一篇:svn note

给主人留下些什么吧!~~