依預設,「子版本」會將 IBM® Rational® Rhapsody® 單元視為文字檔,因此在您執行更新作業時,它會進行文字合併。此方法會損壞 Rational Rhapsody 模型。
在將「子版本」與 Rational Rhapsody 搭配使用時,若要避免毀損「子版本」中的儲存庫,您必須設定「子版本」,以將 Rational Rhapsody 單元當作非文字檔來處理。
關於這項作業
「子版本」儲存庫中的每個 Rational Rhapsody 單元均需要設定 svn:mime-type 內容,以便被視為非文字檔;例如,application/octet-stream。
非文字檔不得以 text/ 開頭。
您可以使用「子版本」的配置檔來啟用其自動內容設定特性,然後將 Rational Rhapsody 單元延伸對映至 svn:mime-type 內容值,以讓「子版本」將 Rational Rhapsody 單元視為非文字檔。
若要設定「子版本」,以將 Rational Rhapsody 單元當作非文字檔來處理並避免毀損儲存庫:
程序
- 開啟「子版本」的配置檔。例如,在 Microsoft® Windows® 中,此檔案可能在 C:\Documents and Settings\Administrator\Application Data\Subversion 內。
- 在配置檔的 [miscellany] 區段中,將自動內容設定特性設定為 yes,如下列範例中所示:
### Section for configuring miscelleneous Subversion options.
[miscellany]
...
### Set enable-auto-props to 'yes' to enable automatic properties
### for 'svn add' and 'svn import', it defaults to 'no'.
### Automatic properties are defined in the section 'auto-props'.
enable-auto-props = yes
- 在 [auto-props] 區段中,將 Rational Rhapsody 單元延伸對映至 svn:mime-type 內容。在下列範例中,將會使用 application/octet-stream。
### Section for configuring automatic properties.
[auto-props]
### The format of the entries is:
### file-name-pattern = propname[=value][;propname[=value]...]
### The file-name-pattern can contain wildcards (such as '*' and
### '?'). All entries which match will be applied to the file.
### Note that auto-props functionality must be enabled, which
### is typically done by setting the 'enable-auto-props' option.
...
*.rpy = svn:mime-type=application/octet-stream
*.sbs = svn:mime-type=application/octet-stream
*.cls = svn:mime-type=application/octet-stream
*.omd = svn:mime-type=application/octet-stream
*.std = svn:mime-type=application/octet-stream
*.ucd = svn:mime-type=application/octet-stream
*.mcs = svn:mime-type=application/octet-stream
*.ctd = svn:mime-type=application/octet-stream
*.dpd = svn:mime-type=application/octet-stream
*.pld = svn:mime-type=application/octet-stream
*.fil = svn:mime-type=application/octet-stream
*.fol = svn:mime-type=application/octet-stream