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

Re: Properties are not reset after svn delete + svn add?

From: Rudolf Cejka <cejkar_at_fit.vutbr.cz>
Date: 2007-01-23 23:15:43 CET

Nick Stolwijk wrote (2007/01/23):
> After your svn delete commando, the file is marked for deletion.
> The svn proplist commando gets the properties for the file under version
> control.

If svn proplist would get properties from the file under version
control, it would not display anything right after svn add (and
before svn commit), because it is not yet under version control.
However, it does - it displays what will be there.

svn add displays either what will be there, or what was there,
based on independent steps done before it. And it is possible,
that you even will not know about these independent steps.

Knowing that, you can easily solve following riddle: How is it possible
using default configuration, that when there is added file script.sh,
once with executable flag and once without executable flag, that in both
cases there is svn:executable flag set?

$ svn add script.sh # File script.sh is with executable flag
$ svn proplist script.sh
Properties on 'script.sh':
  svn:executable

...

$ svn add script.sh # File script.sh is without executable flag now
$ svn proplist script.sh
Properties on 'script.sh':
  svn:executable

-- 
Rudolf Cejka <cejkar at fit.vutbr.cz> http://www.fit.vutbr.cz/~cejkar
Brno University of Technology, Faculty of Information Technology
Bozetechova 2, 612 66  Brno, Czech Republic
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 23 23:16:15 2007

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

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