[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

1.5.x bug: property that have to be deleted by update remains in the working copy after update

From: Alexander Kitaev <Alexander.Kitaev_at_svnkit.com>
Date: Tue, 13 May 2008 16:21:40 +0200


There is a bug in 1.5.x that results in wc corruption.

To reproduce the problem:

$ svn ps prop value .
$ svn ci -m "propset"
Committed revision N.

$ svn mkdir dir
$ svn pd prop .
$ svn ci -m "prop deletion and mkdir" .
Committed revision M.

$ svn up -rN .
  U .
D dir

$ mkdir dir
$ svn up .
// update fails with obstruction, WC is marked as "incomplete"
$ rm -rf dir
$ svn up .
$ svn pl -v .
// bug: property remains in WC in revision M after update
prop value

The reason of the problem is the way properties are updated for
"incomplete" directories - all properties are sent as they are at target
revision and no existing property is deleted (see libsvn_repos/delta.c:565).

One of the ways to fix this problem is to keep track of paths reported
as "incomplete" (with send_all == true) and then "manually" delete all
properties that were not modified during update in close_dir/file for
that paths.

I've already submitted and issue for that:

Alexander Kitaev,
TMate Software,
http://svnkit.com/ - Java [Sub]Versioning Library!
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-05-13 16:22:40 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.