You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Vincent Lefevre <vi...@vinc17.org> on 2007/04/05 15:59:28 UTC

Bug: properties lost in working copy after a rm, mv and ci

The following bug occurs with Subversion 1.4.2 and 1.4.3 at least:

vin:~tmp> svnadmin create svn
vin:~tmp> svn co file://`pwd`/svn wc
Checked out revision 0.
vin:~tmp> cd wc
vin:~tmp/wc> touch foo bar
vin:~tmp/wc> svn add foo bar
A         foo
A         bar
vin:~tmp/wc> svn ps svn:mime-type text/plain foo bar
property 'svn:mime-type' set on 'foo'
property 'svn:mime-type' set on 'bar'
vin:~tmp/wc> svn ci -m 'add'
Adding         bar
Adding         foo
Transmitting file data ..
Committed revision 1.
vin:~tmp/wc> svn pl -v foo bar
Properties on 'foo':
  svn:mime-type : text/plain
Properties on 'bar':
  svn:mime-type : text/plain
vin:~tmp/wc> svn rm foo
D         foo
vin:~tmp/wc> svn mv bar foo
A         foo
D         bar
vin:~tmp/wc> svn pl -v foo
Properties on 'foo':
  svn:mime-type : text/plain
vin:~tmp/wc> svn ci -m 'rm and move'
Deleting       bar
Replacing      foo

Committed revision 2.
vin:~tmp/wc> svn pl -v foo
vin:~tmp/wc>

Note: the properties are lost in the working copy only, because
if I do a checkout, I get them back:

Properties on 'foo':
  svn:mime-type : text/plain

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Bug: properties lost in working copy after a rm, mv and ci

Posted by Vincent Lefevre <vi...@vinc17.org>.
On 2007-04-05 17:34:53 +0100, Malcolm Rowe wrote:
> On Thu, Apr 05, 2007 at 05:59:28PM +0200, Vincent Lefevre wrote:
> > The following bug occurs with Subversion 1.4.2 and 1.4.3 at least:
> 
> Confirmed on 1.4.0 and trunk (with variations).

This seems to be Issue 2743.

-- 
Vincent Lefèvre <vi...@vinc17.org> - Web: <http://www.vinc17.org/>
100% accessible validated (X)HTML - Blog: <http://www.vinc17.org/blog/>
Work: CR INRIA - computer arithmetic / Arenaire project (LIP, ENS-Lyon)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

Re: Bug: properties lost in working copy after a rm, mv and ci

Posted by Malcolm Rowe <ma...@farside.org.uk>.
On Thu, Apr 05, 2007 at 05:59:28PM +0200, Vincent Lefevre wrote:
> The following bug occurs with Subversion 1.4.2 and 1.4.3 at least:
> 

Confirmed on 1.4.0 and trunk (with variations).

> vin:~tmp/wc> svn rm foo
> D         foo

(On trunk, this fails because 'foo' has local mods, so you need
--force.)

> vin:~tmp/wc> svn mv bar foo
> A         foo
> D         bar
> vin:~tmp/wc> svn pl -v foo
> Properties on 'foo':
>   svn:mime-type : text/plain

On trunk, the situation's even worse - foo's properties disappear here.

Regards,
Malcolm