Eli

To content | To menu | To search

Tag - subversion

Tuesday, October 25 2011

Subversion 1.7.1 Released

Release notes for Subversion 1.7.1 from official site.

Overview

Thirteen days after 1.7.0 release, this is the big bugfix release.
Mainly performance and stability issues.

Fixes

  • Improve performance of 'svn info'
  • Improve hash table sorting performance
  • Update bash completion for 1.7
  • Make 'svn ls' continue to work with 1.0-1.3 repos
  • Improve handling of error messages generated by Cyrus SASL
  • Update INSTALL documentation file
  • Error instead of assert when upgrading corrupt WCs
  • Improve memory usage in merge
  • Fix an invalid assertion in merge
  • Improve performance of 'merge --reintegrate' in edge-case
  • Fixed: 'svn mergeinfo' shows wrong revisions for added nodes
  • Make 'svn add --parents D/file' work if D is deleted
  • Improve performance of trivial text file merges
  • Add FSFS sanity check to prevent corruption seen in the wild
  • Improve correctness/performance of recursive info and proplist
  • Fix memory leak in 'merge --reintegrate'
  • Fix handling of directories after 'update --set-depth=empty'
  • Fix 'checksum != NULL' assertions in some upgraded WCs
  • Fix upgrading of WCs containing authz-restricted dirs
  • Make the server tolerate svn:mergeinfo with malformed paths
  • Fix some erroneous warning messages from the svn client
  • Fix WC upgrade with replaced nodes in edge-case


New Features

No new features in this version.

You can download it from : http://svn.apache.org/repos/asf/subversion/tags/1.7.1/




Sunday, October 23 2011

TortoiseSVN 1.7.1 Released

Release notes for TortoiseSVN 1.7.1 from official site.
The current version of TortoiseSVN 1.7.1 is linked against Subversion 1.7.1.

Overview

Big bugfix release.
Mainly user interface, stability and repo browser issues.

Fixes

  • Check for modifications on multiple targets.
  • Crash in TSVNCache.
  • Cursor stayed as busy after an operation until it was moved.
  • Checked item count in commit dialog is wrong.
  • Resolve conflict dialog resizing issues.
  • Docs are wrong for log filter automation.
  • Missing space in property status text.
  • Unable to close repo browser to repository with username/password required.
  • Too many accesses to the config files.
  • Endless loop in repobrowser.
  • Wrong argument exception in repobrowser.
  • Memory corruption in repository browser.
  • Renamed diff scripts.
  • Tagging externals errors not shown.
  • Tagging externals for files pegs to HEAD.
  • Win7 library loses command buttons.
  • "Search for:" string is trimmed forcibly in TortoiseMerge.
  • Crash when editing externals property.
  • Log dialog uses wrong file if sorted.
  • Log dialog does not refresh correctly.
  • Bogus entries in Language Combo on x64.


New Features

No new features in this version.

You can download : TortoiseSVN 1.7.1 32-Bit or TortoiseSVN 1.7.1 64-Bit




Thursday, October 20 2011

Solve 'svn : Working copy is too old (format 10, created by Subversion 1.6)'

Working copy is too old (format 10, created by Subversion 1.6)

This message show up if your are trying to use Subversion 1.7 client with a Subversion 1.6 working copy.

Even if older clients and servers interoperate transparently with 1.7 servers and clients, when a working copy is upgraded to Subversion 1.7 new format, Subversion 1.6 client can no longer be used on it.

You have two solution to solve this error :

  • Keep Subversion 1.7 client and upgrade the working copy to 1.7
  • Unistall Subversion 1.7 client and downgrade working copy to 1.6


Upgrade to Subversion 1.7

Before upgrading to 1.7, a 1.6 client must be used to run svn cleanup on all working copies that require cleanup. Subversion 1.7 cannot upgrade corrupt 1.6 working copies.

Upgrade with Tortoise

Right-click on the working copy Folder, then click on "SVN Upgrade working copy" Upgrade_to_Subversion_1.7_with_Tortoise_1.png
Click on "Upgrade the working copy" on the next step Upgrade_to_Subversion_1.7_with_Tortoise_2.png This may take a while, but your working copy will be in Subversion 1.7 format.

Upgrade with command line client.

Simply use the new Subversion 1.7 command

svn upgrade

And your working copy will be in 1.7 format.

Downgrade the working copy to Subversion 1.6

Use this guide to downgrade a Subversion 1.7 working copy.




Tuesday, October 5 2010

Solve 'svn: This client is too old to work with working copy' error without upgrading Subversion

At work we use two different major version of Subversion : 1.5 for our own repositories and 1.6 for everything that come from others repositories (Apache, Google Code, ...).

Reason is that we do not have time to upgrade to Subversion 1.6, and we cannot commit to Google Code without 1.6 client.

svn: This client is too old to work with working copy

It's dangerous to use 1.6 client with 1.5 working copies because Subversion 1.6 working copy format was upgraded from 1.5, this means that :

  • 1.5 and older Subversion clients will not be able to work with working copies produced by Subversion 1.6
  • Working copies are upgraded automatically
  • We get a svn: This client is too old to work with working copy message too often

Recently we made two mistake using Tortoise SVN and Subclipse for Eclipse Helios newest version in two different places, a linux server via Samba, and my Windows computer.

Nobody is able to work with theses upgraded working copies, getting this message

svn: This client is too old to work with working copy '.'.  You need
to get a newer Subversion client, or to downgrade this working copy.
See http://subversion.tigris.org/faq.html#working-copy-format-change
for details.


Working copy format change with Subversion 1.6

Subversion becomes Apache Subversion in 2010, let's check the new documentation URL on subversion.apache.org.

Sometimes the working copy metadata format changes incompatibly between minor releases. For example, say you have a working copy created with Subversion 1.4.4, but one day you decide to try out Subversion 1.5.0. Afterwards, you attempt to switch back to 1.4.4, but it doesn't work — it just gives the above error.

This is because 1.5.0 upgraded your working copy format to support some new features (in this case, changelists, the keep-local flag, and variable-depth directories). Although 1.4.4 doesn't know anything about these new features, it can at least recognize that the working copy format has been upgraded to something higher than it can handle.

Subversion team distribute a Python script that can downgrade working copies safely because this automatic upgrade behavior can be annoying.

Linux part : change-svn-wc-format.py Python script

Download and installation

We need to first download the change-svn-wc-format.py script

wget http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py

Then don't forget to give execution right to it

chmod +x change-svn-wc-format.py

Testing if everything work by checking the help

 ./change-svn-wc-format.py --help
usage: change-svn-wc-format.py WC_PATH SVN_VERSION [--verbose] [--force] [--skip-unknown-format]
       change-svn-wc-format.py --help

Change the format of a Subversion working copy to that of SVN_VERSION.

  --skip-unknown-format    : skip directories with unknown working copy
                             format and continue the update

If you don't see this message, you probably got a Python error, this script use Python 2.X, check Google to help you on this subject as i'm not a specialist on it.

Downgrading working copy

I want my working copy to be downgraded to Subversion 1.5 and to see what happen so let's use this command :

./change-svn-wc-format.py /my/broken/WC/path/. 1.5 --verbose

I strongly suggest you to use --verbose, because using change-svn-wc-format.py in a path that does not exists say that ... it worked.

./change-svn-wc-format.py /this/path/does/not/exists/. 1.5
Converted WC at '/this/path/does/not/exists/.' into format 9 for Subversion 1.5

Now on a real working copy

Processing directory '.'
Parsing file '/my/broken/WC/path/.svn/entries'
Updating file '/my/broken/WC/path/.svn/format'
/my/broken/WC/path/.svn/format does not exist, creating it.
Checking whether WC format can be converted
Writing WC format
[...]
Writing WC format
Converted WC at '/my/broken/WC/path/' into format 9 for Subversion 1.5

A simple status command to check everything :

svn status -u
Status against revision:    604

It worked !

Windows part for change-svn-wc-format.py

Python download and installation

Subversion script use Python 2.X, so download it from this download page, then install it.

Add Python directory (C:/Python27 here) to your Windows environment variable "Path", open Control Panel > System > Advanced Panel > Environment variables > Path > Modify.
A screen in a french Windows XP can help you /blog/public/windows_python_env_path.png.

Download and test change-svn-wc-format.py

Open http://svn.apache.org/repos/asf/subversion/trunk/tools/client-side/change-svn-wc-format.py and "Save As" the script on your computer.
Then open a DOS command prompt windows and execute this command to check correct python installation

python change-svn-wc-format.py --help

If you 've got the following message your are using Python 3.X and you need to install Python 2.X

  File "change-svn-wc-format.py", line 99
    except UnrecognizedWCFormatException, e:
                                        ^
SyntaxError: invalid syntax

Both version can be installed at the same time, but only one can be put in Windows environment variable "Path" or you can try the conversion tool for Python 2.x code from 2to3 tools.

Downgrading working copy

Open a DOS command prompt windows then execute

C:\>python change-svn-wc-format.py c:/my/broken/working/copy 1.5 --verbose
Processing directory 'c:/my/broken/working/copy.'
Parsing file 'c:/my/broken/working/copy.svn/entries'
Updating file 'c:/my/broken/working/copy/.svn/format'
[...]
Converted WC at 'c:/my/broken/working/copy' into format 9 for Subversion 1.5

Again I strongly suggest you to use --verbose using change-svn-wc-format.py in a path that does not exists say that ... it worked.

Hope that after losing hour after hour we finally get some green light to upgrade Subversion.




Friday, October 1 2010

Subversion 1.6.13 released

Version 1.6.13 of Subversion has been released, this is a bugfix release, part of the 1.6.x release series.
This release includes a fix which addresses CVE-2010-3315, a security issue when using 'SVNPathAuthz short_circuit'.

Release Notes

User-visible changes in Subversion 1.6.13:

  • Don't drop properties during foreign-repo merges (issue #3623)
  • Improve auto-props failure error message (r961970)
  • Improve error message for 403 status with ra_neon (r876615)
  • Don't allow 'merge --reintegrate' for 2-url merges (r959004)
  • Improve handling of missing fsfs.conf during hotcopy (r980811, -1449)
  • Escape unsafe characters in a URL during export (issue #3683)
  • Don't leak stale locks in FSFS (r959760)
  • Better detect broken working copies during update over ra_neon (r979045)
  • fsfs: make rev files read-only (r981921)
  • Properly canonicalize a URL (r984928, -31)
  • Fix wc corruption with 'commit --depth=empty' (issue #3700)
  • Permissions fixes when doing reintegrate merges (related to issue #3242)
  • Fix mergeinfo miscalculation during 2-url merges (issue #3648)
  • Fix error transmission problems in svnserve (r997457, -66)
  • Fixed: record-only merges create self-referential mergeinfo (issue #3646)
  • Fixed: 'SVNPathAuthz short_circuit' unsolicited read access (issue #3695)
  • Make 'svnmucc propset' handle existing and non-existing URLs (r1000607)
  • Add new 'propsetf' subcommand to svnmucc (r1000612)
  • Emit a warning about copied dirs during ci with limited depth (r1002094)

Developer-visible changes in Subversion 1.6.13:

  • Make ruby bindings compatible with Ruby 1.9 (r957507)
  • Use the repos verify API in JavaHL (r948916)
  • Teach ra_serf to parse md5 checksums with update editors (r979429)
  • Let ra_serf work with current serf releases (r879757, r880320, r943796)

For more informations about changes, see the Changelog.




- page 1 of 2