在从中央存储库中拉取之前,我通常使用“hg 传入”命令来查看我将拉取的内容。但是,这仅给了我一个带有一些注释的变更集列表,而不是已修改的实际文件的列表。
1) 在这种情况下,我怎样才能获得修改文件的列表(包括一些关于 chane 的基本信息,如已删除、已移动等)?
2) 同样,当我执行 'hg status' 时,我会发现本地工作副本与当前存储库中的内容之间的差异。但是,一个更有用的功能是获取传入内容和我的本地工作副本之间的差异。我怎样才能得到这个?
谢谢!
最佳答案
如果您没有足够新的 --stat
版本,您可以使用 status
获得类似的概述:
cd repo
// grab the newest changes into a bundle
hg incoming --bundle morechanges.bun
// get an id for the current tip
hg tip
changeset: x:abcdef
...
// see what's changed by overlaying the bundle on the repo
hg -R morechanges.bun status --rev abcdef:tip
//info you're looking for
// everything's good; add the bundle to the repo
hg pull morechanges.bun
rm morechanges.bun
关于version-control - Mercurial:关于修改文件的信息,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/4303293/