2014-11-06 70 views
0

如何在IntelliJ IDEA中配置Subversion以支持多個模塊?每個模塊都有自己的主幹,標籤和分支文件夾,但是所有模塊都是從一個回收站進行檢查。我的倉庫的結構看起來像這樣:配置Subversion標籤以使用模塊

/my_project 
    /folder1 
    /module1 
     /trunk 
     .... all module files 
     /tags 
     /1.0 
     /2.0 
     /branches 
     /b1 
    /module2 
     /trunk 
     .... all module files 
     /tags 
     /1.0 
     /2.0 
     /branches 
    /folder2 
    /module3 
     /trunk 
     .... all module files 
     /tags 
     /1.0 
     /2.0 
     /branches 
    /module4 
    /trunk 
     .... all module files 
    /tags 
     /1.0 
     /2.0 
    /branches 

回答

0

你可以去到Settings - >Project Settings - >Version Control並在右邊你會看到的版本控制目錄映射像這樣的表:

Version Control Directory mappings

您可以使用+按鈕來定義與項目中不同目錄對應的不同源根。

當然,替代方案是使用多個項目而不是一個超大型項目,但涉及到很多alt-tabbing,我相信您已經考慮過這種替代方案。

無論如何,這(加上一些使用鼠標右鍵點擊:Subversion - >Relocate ......選擇每個模塊的正確源根)過去解決了類似的問題,對我來說 - 它爲你工作?