[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: Nick Stolwijk <nick_stolwijk_at_planet.nl>
Date: 2007-01-23 21:11:56 CET

This is as I understand it:

After your svn delete commando, the file is marked for deletion.
The svn proplist commando gets the properties for the file under version
control. (Remember, it is only marked for deletion but still in the
repository as far as subversion is concerned)
The svn add commando adds another file "script.sh" without the +x
modification.
The svn commit now performs multiple steps:

Deleting script.sh, thus also deleting properties on script.sh
Adding script.sh, without properties.

After this, when you execute an svn log on script.sh, it only shows the
log from the commit, so it is totally unrelated to the first script.sh.

Seems logical to me.

Hth,

Nick Stolwijk

Rudolf Cejka wrote:
> Hello,
> I have a small problem with subversion 1.4.2, when doing
> something like this:
>
> $ touch script.sh
> $ chmod +x script.sh $ Create script.sh with executable flag
>
> $ svn add script.sh
> $ svn proplist script.sh
> Properties on 'script.sh':
> svn:executable # Automatically added executable property
>
> $ svn commit -m "" script.sh
> $ svn proplist script.sh
> Properties on 'script.sh':
> svn:executable # Executable property is still here
>
> $ svn delete script.sh # Now file is deleted without a commit... (1)
> $ svn proplist script.sh # ... but properties still do exist
> Properties on 'script.sh':
> svn:executable
>
> $ touch script.sh # File is recreated and readded without...
> $ svn add script.sh # ... executable flag
> $ svn proplist script.sh
> Properties on 'script.sh': # ... but properties are still here
> svn:executable
>
> $ svn commit -m "" script.sh # (2)
> $ svn proplist script.sh # And now properties are missing!
>
> I tried the same situation with property added by hand (named "test"), but
> with the same result. I think that there are two possible solutions: Either
> delete properties with svn delete (1), or leave the properties after
> svn commit (2), as they are listed by svn proplist just before this command.
> The current behavior is somewhat confusing and looks like a bug - should I
> fill a bug report?
>
> PS: I'm not in the users@ list, so please do cc: to me too, thanks.
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jan 23 21:12:44 2007

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