[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: <pmarek_at_users.sourceforge.net>
Date: 2003-07-09 13:50:39 CEST

> 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.
Is it possible to get the current values into a file?

eg. I have a file which changed last in revision 100.
HEAD is at 105.
file includes "$Rev$" and has "svn:keywords" set to "Rev".

I tried the following things:

- update (which says "at revision xxx" but does nothing)

- rm file ; svn update file. That works, but is not what I want - what if
someone changed the file?? I know I could check the status - but that's a
little bit complicated.

- "svn merge -r BASE:HEAD file". That doesn't work, and I don't understand
why. The error it gives is (subversion 0.24.1)
        svn: a path under revision control is needed for this operation
        svn: svn_client__get_revision_number: need a version-controlled
                path to fetch local revision info.

How can I get the current HEAD revision number into this file???

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed Jul 9 13:52:07 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.