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

Re: svn:keywords substitutions failing until pdel + re-ps

From: Karl Fogel <kfogel_at_newton.ch.collab.net>
Date: 2002-08-01 18:08:49 CEST

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

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

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