Mercurial使用笔记(2)

记录使用Mercurial中遇到的问题和疑惑(2)

命令:

hg status 简写: hg st

查看working copy与local repository之间的的所有更改引用:http://anotherwayaround.blog.163.com/blog/static/1900662202012326104313552/

Status is a command to check Status is a command to check what the pre-commit status. It tells you whether files are tells you whether files are (A)dded, (R)emoved, (M)odified among other things. manifest command too. So the status command gives some nice information before commit. (在每次提交前,我们都应改执行下这个命令,看下改动了那些内容。)

hg diff

查看working copy与local repository之间的的所有更改的详细内容.
hg diff [File] # What’s the difference between the repo. and the working copy.
hg diff -r xx [File] # How is the working copy different form revision 5. (从版本xx之后,file文件改动内容)
hg diff -r 0:1 [File] 两个版本之间的改动
(对于diff命令,我感觉还是通过SourceTree等UI工具看起来会比较好)

hg cat

首先, 一条简单的 hg cat 命令可以用来显示一个文件的任何历史版本.
hg cat -r xx FILE # Print (cat) file as it were in revision xx.

help

hg cat –help 查看命令帮助
hg help init 同样可以查看命令帮助

hg in [摘自][1]

// 查看remote repository 上可更新的changeset

hg out [摘自][1]

// 查看local repository上 可push的changeset

参考:

[1]: http://bucunzai.net/hginit/groundup/#hg-cat
[2]: http://anotherwayaround.blog.163.com/blog/static/1900662202012326104313552/
[3]: http://www.jemander.se/MercurialByExample.pdf

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值