How do I determine the SVN working copy layout version?

For example, the SVN 1.5 client has one layout for working copies, and the SVN 1.6 client has a different layout. I understand that the layout automatically gets upgraded when it gets touched by a newer client.

If I have a working copy on my system, how can I find out the version of the layout it’s using?

  • Where do you put your app-config-files when deploying rails with capistrano and svn
  • How to choose --prefix for git svn clone
  • How do I revert the Subversion repository, not my working copy, to a specific revision?
  • Java projects within branch treated as separated branch or tags in git from svn?
  • svn unable to open an ra_local session
  • How to set svn:ignore with multiple values?
  • svn: warning: '.' is not a working copy
  • Repetitive merge changes on tortoise svn trunk to branch merge
  • Using Version Control for Home Development?
  • svn: How to revert somebody else's commit?
  • SVN: Ignore subfolders
  • Conflict for property svn:ignore?
  • 2 Solutions collect form web for “How do I determine the SVN working copy layout version?”

    If .svn/format exists, then read the number in it:

    • Version 7 is SVN 1.3
    • Version 8 is SVN 1.4
    • Version 9 is SVN 1.5

    If .svn/format doesn’t exist then the version number is on the first line in .svn/entries:

    • Version 10 is SVN 1.6
    • Version 12 is SVN 1.7

    Subversion 1.6 was the first one not to use .svn/format. Version 7 and older used XML-based .svn/entries file, newer versions use less verbose line-based file format.

    Since Subversion 1.7 the version number is stored in the .svn/wc.db SQLite database in the “user_version” field. So even though .svn/format is bumped to version 12 the actual format version is 29 and future versions may not update .svn/format anymore.

    All the format version numbers are described in wc.h along with the version numbers of respective Subversion releases.

    From Stack Overflow question Find out SVN working copy version (1.7 or 1.8):

    One can use sqlite3 .svn/wc.db "PRAGMA user_version" on SVN 1.7 or later (or od -An -j63 -N1 -t dC .svn/wc.db if you only have the SQLite 3.0 libraries, YMMV).

    Git Baby is a git and github fan, let's start git clone.