2011-08-29 34 views
1

我不知道是否有在水銀兼容替代以下的git log命令:水銀替代以下的git log命令

混帳登錄--pretty = ONELINE --parents --name只 - 反向

感謝。

+0

請出示從Git的輸出,以防萬一有人有水銀,但不混帳。 –

回答

0

得到它使用以下命令工作:在my.style的

log --debug -r : --style my.style 

內容:

changeset = "{node} {parents} {desc|firstline}\n{files}\n" 
file = "{file}\n" 
parent = "{node} " 

輸出就幾乎等同於我張貼與一個例外git的命令:就會出現一個奇怪的空白後

3

這是接近我--template有:

$汞柱日誌--template「{轉} {節點|短} {家長} {遞減| FIRSTLINE} \ N {文件} \ N」

主要生產:

15047:8050db40bc5a 15045:7f504202cb5c ui: pass ' ' to raw_input when prompting 
mercurial/ui.py 
15046:c019df62de45 15043:0bb0f807dfc3 15045:7f504202cb5c merge with stable 
mercurial/commands.py mercurial/help/config.txt 
15045:7f504202cb5c help/config: strip trailing whitespace 
mercurial/help/config.txt 

使用style file,您可以自定義parents印是完整的哈希值的方式,改變DELIM的files ITER到一個新行。

+1

您的解決方案產生輸出是從原來的git的日誌版本有很大不同。儘管如此。 –

+0

http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html – JuanPablo