0
如何合併某些存儲庫,以便在Gource中充分顯示提交歷史記錄?Mercurial存儲庫的組合提交歷史(對於Gource)
Merging two different repositories我所做的一切,被指定有 但Gource只有一個存儲庫的提交顯示
如何合併某些存儲庫,以便在Gource中充分顯示提交歷史記錄?Mercurial存儲庫的組合提交歷史(對於Gource)
Merging two different repositories我所做的一切,被指定有 但Gource只有一個存儲庫的提交顯示
這是我今天寫了一個批處理文件,它解決了subrepos問題:
REM Remember the directory we started in.
set PreDir=%cd%
REM Clean up old data
DELETE dump.log
DELETE filtereddump.log
REM Generate data for every repo using onsub
hg onsub "gource --output-custom-log test.log"
REM Concatenate all collected data into the one log file
hg onsub "TYPE test.log >> %PreDir%/dump.log"
REM Sort file to get correct chronological order
sort dump.log > filtereddump.log
REM Run gource with the filtered data
gource filtereddump.log
顯然,這裏有幾個假設...這是Windows特定的,子庫特有的,並依賴於mercurial extension'onsub'和我在這裏拾取的排序工具:http://gnuwin32.sourceforge.net/packages/coreutils.htm
希望有所幫助。
PS:此批處理腳本的靈感來自Gource wiki上的信息。檢出https://code.google.com/p/gource/wiki/GourceMashups
'hg log'命令顯示所有連接的存儲庫?最好用'gg glog - style compact'來看。 – santiagopim