2009-07-03 40 views

回答

3

我不知道Powershell語法,但您正在查找hg cat命令。與答案your other question我會做這樣的在Unix shell(zsh的在我的情況)合併:

for r in $(hg log --template '{rev} ' README); do hg cat -r $r README; done 

我第一次得到所有在README被改變的修訂。它們將被放入一個大的字符串是這樣的:

% hg log --template '{rev} ' README 
822 804 688 681 629 539 538 

然後,您可以遍歷這些版本號,並呼籲各hg cat

+0

謝謝Martin,寫得很好。 – Valentin 2009-07-03 17:00:52

相關問題