2013-11-21 38 views

回答

0

這是我今天寫了一個批處理文件,它解決了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

相關問題