2012-02-14 86 views
0

我想通過使用「hg檔案」來交付我的項目。我看到的唯一問題是該檔案中沒有歷史文件。有沒有辦法將完整的歷史導出到同一個文件中?Mercurial - 導出歷史檔案檔案

我的意思是修訂描述。

回答

0

運行後hg archive您可以運行hg log --style compact > history.log。你最終會包含喜歡的東西文件:

598[tip][master] 9e6089ab583e 2012-01-31 17:33 -0800 ludovic 
    Fixed bug with invalid cache deleting the server cache. 

597 31db8a573628 2012-01-31 17:33 -0800 ludovic 
    Added ability to bake a single directory. 

596 94984a322204 2012-01-31 17:32 -0800 ludovic 
    Added helper function to create dummy posts. 

595[github/master] 7cc23cfe234b 2012-01-30 11:55 -0800 ludovic 
    Added another test for file baking. 

594 044b67accf3c 2012-01-30 11:55 -0800 ludovic 
    Throw an error about not supporting asset sub-directories. 

593 dd1943298b06 2012-01-30 10:23 -0800 ludovic 
    Make `PieCrustPlugin::getName` abstract. 

您可以自定義的hg log輸出與任何預定義的樣式,或with a style of your own,取決於有多少在歷史文件信息的匱乏。

2

hg archive是專門設計的刪除任何歷史上下文/版本控制數據。

如果您需要存儲庫的歷史記錄,只需複製實際存儲庫。

+0

我的意思是修訂描述。 – Michael 2012-02-14 00:57:26

+0

之後你必須寫下來。 – Amber 2012-02-14 01:30:32

+0

我如何提取它? – Michael 2012-02-14 02:27:53