You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Alexis Huxley <ah...@gmx.net> on 2003/02/23 15:32:12 UTC

5033: property lost on renamed file

Hi, 

I've built 5033. I've retrieved a working copy, and files on which
I had attached svn:keywords properties *and* renamed the files (and
committed) have lost the property.

I looked on issues, but didn't find anything that matched this. I
presume this *is* the wrong behaviour though, right?

Recipe below. 

Alexis



#  Create repos
leda$ svnadmin create `pwd`/repos
leda$ svn co file://`pwd`/repos wc
Checked out revision 0.

#  Add a file and some properties
leda$ echo '$HeadURL$ $LastChangedRevision$' > wc/newfile
leda$ svn add wc/newfile 
A         wc/newfile
leda$ svn pset svn:keywords 'HeadURL
LastChangedRevision
' wc/newfile 
property `svn:keywords' set on 'wc/newfile'

#  Commit
leda$ svn commit -m "blah" wc
Adding         wc/newfile
Transmitting file data .
Committed revision 1.

#  Rename a file
leda$ svn mv wc/newfile wc/newfile2
A         wc/newfile2
D         wc/newfile

#  Commit
leda$ svn commit -m "blah" wc
Deleting       wc/newfile
Adding         wc/newfile2

Committed revision 2.

#  Blast and recreate wc
leda$ rm -fr wc
leda$ svn co file://`pwd`/repos wc
A  wc/newfile2
Checked out revision 2.

#  Examine
leda$ cat wc/newfile2  
$HeadURL: $ $LastChangedRevision: $
leda$ 

-- end --

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

Re: 5033: property lost on renamed file (issue 1151)

Posted by Alexis Huxley <ah...@gmx.net>.
> triggers keyword expansion.  If there isn't an issue one should be
> raised.

SSIA

(subject says it all :)

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

Re: 5033: property lost on renamed file

Posted by Alexis Huxley <ah...@gmx.net>.
> > I've built 5033. I've retrieved a working copy, and files on which
> > I had attached svn:keywords properties *and* renamed the files (and
> > committed) have lost the property.
> 
> The rename isn't necessary to trigger the problem
> 
> $ svnadmin create repo
> $ svn co file://`pwd`/repo wc
> $ echo '$HeadURL$' > wc/foo
> $ svn add wc/foo
> $ svn ps svn:keywords HeadURL wc/foo
> $ svn ci wc
> $ rm -rf wc
> $ svn co file://`pwd`/repo wc
> $ cat wc/foo
> $HeadURL: $

I confirm that your smaller recipe also triggers it, but the original
situation I had - prior to making the recipe - had been arrived at
with the following steps:

	check out many source files which all already had properties
	rename *some* of the files
	commit
	delete wc
	upgrade to 5033
	retrieve wc

and at this point the files which I had *not* moved contained the
correct keyword expansion, but those that I had moved had lost it.

I don't know if that is relevant.

> It looks like a checkout bug, doing
> 
> $ svn up -r0 wc
> $ svn up -r1 wc
> 
> triggers keyword expansion.  If there isn't an issue one should be
> raised.

I don't mind doing that. I guess I have to create an account ...

Alexis

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

Re: 5033: property lost on renamed file

Posted by Philip Martin <ph...@codematters.co.uk>.
Alexis Huxley <ah...@gmx.net> writes:

> I've built 5033. I've retrieved a working copy, and files on which
> I had attached svn:keywords properties *and* renamed the files (and
> committed) have lost the property.

The rename isn't necessary to trigger the problem

$ svnadmin create repo
$ svn co file://`pwd`/repo wc
$ echo '$HeadURL$' > wc/foo
$ svn add wc/foo
$ svn ps svn:keywords HeadURL wc/foo
$ svn ci wc
$ rm -rf wc
$ svn co file://`pwd`/repo wc
$ cat wc/foo
$HeadURL: $

It looks like a checkout bug, doing

$ svn up -r0 wc
$ svn up -r1 wc

triggers keyword expansion.  If there isn't an issue one should be
raised.

-- 
Philip Martin

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