我希望获得类似于Git命令的输出:
$ git whatchanged <old_rev>..<new_rev> --pretty=oneline --name-status
我看到
hg outgoing
可以帮助,但它的帮助页面中没有与修订版相关的信息:
$ hg diff <old_rev>..<new_rev>
可以给出不同之处,但输出是:diff -r d3ed0d3eb928 -r 63329069147f hello.rb
--- a/hello.rb Tue Jul 31 16:52:40 2012 +0530
+++ b/hello.rb Wed Aug 01 11:15:33 2012 +0530
@@ -1,1 +1,1 @@
-print "Hello"
+print "Hello World"
我需要类似以下内容的东西:
bb3b9a6bc00b7203ab6491dbd062641fa60efb95 Fix for #4 and other small errors
M .gitignore
A config.ru
D db/database.db
M views/setup.haml
1c4ff29e5c7fc707c6fe314c060cd1935b300dd9 Added keyboard shortcuts and reload
M README.md
A public/javascript/keys.js
d0755d0b54cb4129fbf7730fe0bdf21a3996e224 Basic player completed
M README.md
D public/javascript/jquery-ui-1.8.21.custom.min.js
...
我用git whatchanged 1c4ff29e5c7fc707c6fe314c060cd1935b300dd9 bb3b9a6bc00b7203ab6491dbd062641fa60efb95 --pretty=oneline --name-status
获取的信息。
hg log -l 10 --template "{node}\n" | xargs -I{} echo 'hg log -r {} --template "{node} {desc|firstline}\n"; hg status --change {}' | bash
。 - Laurens Holst