Alexis Huxley <ahuxley@gmx.net> writes:
> Deleting a svn:keywords property and then reapplying it with the
> identical command - with commits before, in the middle, and after -
> is leaving the file with the '$whatevers$' in it in a different state
> to before the delete-reapply.
>
> Surely this can't be right?
The above prose description of the bug doesn't seem to match the
reproduction recipe below... (?)
It seems, as Eric Gillespie noted, that the real bug may be with the
initial setting of the $HeadURL$ keyword (you may not even need the
$LastChangedRev$ to reproduce). That is, the HeadURL keyword is not
expanded when you first set its property and commit. But it does (?)
get expanded after later changes to the file. Or something like that.
Can you try boiling down the reproduction recipe and see if you can
get a "minimal" case, that reproduces with head of trunk? Repost
that, and I suspect we'll then be filing an issue, as there is
obviously a real bug here.
Thanks for the report!
-Karl
> Here's the recipe:
>
> #
> # Create repos and put file with keywords in,
> # activate keywords and commit.
> #
> dione$ svnadmin create `pwd`/repos
> dione$ svn co file://`pwd`/repos -d wc
> Checked out revision 0.
> dione$ echo '$HeadURL$ $LastChangedRevision$' > wc/file
> dione$ svn add wc/file
> A wc/file
> dione$ svn ps svn:keywords 'HeadURL
> > LastChangedRevision' wc/file
> property `svn:keywords' set on 'wc/file'
> dione$ svn pg svn:keywords wc/file
> HeadURL
> LastChangedRevision
> dione$ svn commit -m "" wc
> Adding wc/file
> Transmitting file data .
> Committed revision 1.
>
> #
> # Examine the file: 1 keyword changed, 1 not!
> #
> dione$ cat wc/file
> $HeadURL: $ $LastChangedRevision: 1 $ <------------------
>
> #
> # Delete keywords, commit, re-add keywords
> # and commit.
> #
> dione$ svn pdel svn:keywords wc/file
> property `svn:keywords' deleted from 'wc/file'.
> dione$ svn commit -m "" wc
> Sending wc/file
> Transmitting file data .
> Committed revision 2.
> dione$ echo '$HeadURL$ $LastChangedRevision$' > wc/file
> dione$ svn ps svn:keywords 'HeadURL
> > LastChangedRevision' wc/file
> property `svn:keywords' set on 'wc/file'
> dione$ svn commit -m "" wc
> Sending wc/file
> Transmitting file data .
> Committed revision 3.
>
> #
> # Examine the file: 2 keyword changed
> #
> dione$ cat wc/file
> $HeadURL: file:///diskb/home/alexis/repos/file $ $LastChangedRevision: 3 $ <----------
>
> Alexis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: dev-help@subversion.tigris.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Aug 1 18:23:35 2002