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

RE: How to have a version file in the wc?

From: Mats Nilsson <mats.nilsson_at_xware.se>
Date: 2003-07-08 11:01:03 CEST

Hi.

The file hasn't changed, so it remains at the same revision.
Rev is a short form of LastChangedRevision.

There isn't a keyword that does what you want. The recommended solution
is to use 'svnversion' during your build process to populate a file with
workspace version info.

Or you can just make a copy with a special name and instead use the
keyword HeadUrl for identification. Assuming that HEAD never changes in
that copy, of course.

Hth

Mats

> -----Original Message-----
> From: pmarek@users.sourceforge.net
> [mailto:pmarek@users.sourceforge.net]
> Sent: den 8 juli 2003 09:46
> To: dev@subversion.tigris.org
> Subject: How to have a version file in the wc?
>
>
> Hello everybody!
>
> I seem to have a temporary (I hope :-) mental block - I just
> can't think about
> which way to go to have a file in my wc, which has it's
> keywords updated with
> every "svn up".
>
> Let's rephrase that.
> I have a lot of files in my wc, and instead of marking every
> file I'd like to
> have only one file describing my wc (revision-number-wise).
> Now I know that that could make troubles if parts are at
> another revision than
> others - but even in the simple case I'm having trouble.
>
> I created a file with contents "$Rev$", set svn:keywords, committed.
> -> it gets "$Rev: 0 $".
> rm this file, "svn up" to re-get - now it's ok.
>
> On commits in other parts of my wc it doesn't change - ok.
> But if I do a "svn up" at the root of my wc - (which includes
> the marked file,
> of course) - the file doesn't get updated!
>
> What am I doing wrong??
>
>
> Possibly I should have a post-commit-script?? But that works
> on the repository
> and not on my wc.
>
>
> Help, please???
>
>
>
>
> ---------------------------------------------------------------------
> 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 Tue Jul 8 10:58:51 2003

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.