3

最近、svnリポジトリをv1.5からv1.6にアップグレードすることを決定しました。アップグレードコマンドを実行した後、CMDウィンドウにメッセージが残っているのがわかりました。

D:\svn>svnadmin upgrade repo
Repository lock acquired. 
Please wait; upgrading the repository may take some time...

Upgrade completed.

D:\svn>_

Y A!!それは素晴らしいようです...しかし....現在のリポジトリがどのバージョンであるかをどうやって知ることができますか?v1.6にアップグレードされていますか、それともv1.5です。私が持っているリポジトリはほとんどありません。どうすればそれらのバージョンを見つけることができますか?

4

3 に答える 3

9

リポジトリパスのファイル「フォーマット」を調べてください。リポジトリのスキーマが含まれている必要があります。5であるSubversion1.4以降、Subversion 2より前ではおそらく変更されません。スキーマが変更されない限り、「svnadminupgrade」は不要です。

http://svn.apache.org/repos/asf/subversion/trunk/notes/repos_upgrade_HOWTOを引用するには:

Anyone upgrading between versions of subversion that have different
repository schemas.  Schema versions are as follows:

    SUBVERSION VERSION NUMBER           SCHEMA VERSION
    -------------------------           --------------
    Up to and including 0.27            1
    0.28 - 0.33.1                       2
    0.34 - 1.3                          3
    (no released version used this)     4
    1.4 -                               5

If necessary you can see which schema version your repository is
currently using by looking at the format file in the repository.

It should be noted that these changes are extremely rare.  Now that
subversion has reached 1.0.0 our compatibility guarantees require
forward and backward compatible repository formats for all patch
releases and backward compatible for minor releases.  So until
2.0.0 comes out there will be no change that should require a 
dump for upgrading to newer versions.

While Subversion does create version 5 repositories by default as of
version 1.4, it still supports reading and writing version 3
repositories for backwards compatibility.  Additionally, a pre-1.3
client can communicate with a 1.4+ server accessing a version 5
repository.

リポジトリスキーマと作業コピーのスキーマを混同しないでください。作業コピーのformat-fileには、現在のバージョンのsubversionの「9」が含まれています。

于 2009-05-14T15:46:11.560 に答える
1

/format とは別に、ファイル /db/format もあります。たとえば、1.6.x で作成されたデフォルトのリポジトリには、次の内容があります。

4 レイアウト分割 1000

1.5.5 にアップグレードされたリポジトリの場合:

3 レイアウト リニア

プレーン バニラ 1.4.2 リポジトリの場合:

2

于 2009-06-23T15:23:47.447 に答える
0

このコードを見て、Subversion 作業コピーの形式を変更します

最新のフォーマットは

LATEST_FORMATS = { "1.4" : 8,
                   "1.5" : 9,
                   "1.6" : 10
于 2009-05-14T15:57:38.787 に答える