You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Leonel Gayard <le...@gmail.com> on 2007/09/18 22:11:57 UTC
SVN Revision of a whole working dir as a keyword ?
Hi,
I have a README file at the root of my project. In this README file, I
have written: "This is project Blah, revision $Rev$".
SVN correctly substitutes the $Rev$ keyword with the revision number
of file README. The problem is, sometimes other files in the project
are commited, which increases the overall revision, but not the
revision of file README. So, when my users see that file, they see a
different revision number than the revision number of their working
copies.
How can I have my file show the revision number of the working copy ?
Yes, I've already RTFM.
[]'s
Leonel
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: SVN Revision of a whole working dir as a keyword ?
Posted by Maddes <ma...@arcor.de>.
Some other tools for getting the global revision number of a repository are:
1. Tortoise's "SubWCRev" (Windows only)
http://tortoisesvn.net/node/18
Works with the WC.
2. "svnrev"
http://www.compuphase.com/svnrev.htm
Works with the repository.
Remember that you can add created build files to your tags/branches if
necessary (for version keeping).
Matthias "Maddes" Bücher
http://www.maddes.net/
On 19.09.2007 07:37, fj wrote:
> Ryan Schmidt wrote:
>> On Sep 18, 2007, at 18:01, fj wrote:
>>
>>> Leonel Gayard wrote:
>>>
>>>> I have a README file at the root of my project. In this README file, I
>>>> have written: "This is project Blah, revision $Rev$".
>>>>
>>>> SVN correctly substitutes the $Rev$ keyword with the revision number
>>>> of file README. The problem is, sometimes other files in the project
>>>> are commited, which increases the overall revision, but not the
>>>> revision of file README. So, when my users see that file, they see a
>>>> different revision number than the revision number of their working
>>>> copies.
>>>>
>>>> How can I have my file show the revision number of the working copy ?
>>>>
>>>> Yes, I've already RTFM.
>>>
>>> I believe your only option is to segregate what to you is a distinct
>>> "project" into its own repository, because the revision numbers in
>>> svn are repository-wide. Or, I suppose, you change your process and
>>> how you make use of the revision numbers you get.
>>
>> fj, that's not the issue at all. The problem is that Leonel wants the
>> README to contain the latest revision of any file of the project, but
>> the $Rev$ keyword only expands to the latest revision of the README file.
>>
>>
>> Leonel, you'll probably need to do it as in this FAQ item:
>>
>> http://subversion.tigris.org/faq.html#version-value-in-source
>>
>> You'll have a file like README.in from which, in conjunction with the
>> svnversion command, you can generate the final README that you
>> distribute.
>>
> ryan - you're correct. I mis-read Leonel's description.
> thank you.
> -fj
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: SVN Revision of a whole working dir as a keyword ?
Posted by fj <fj...@effjay.com>.
Ryan Schmidt wrote:
> On Sep 18, 2007, at 18:01, fj wrote:
>
>> Leonel Gayard wrote:
>>
>>> I have a README file at the root of my project. In this README file, I
>>> have written: "This is project Blah, revision $Rev$".
>>>
>>> SVN correctly substitutes the $Rev$ keyword with the revision number
>>> of file README. The problem is, sometimes other files in the project
>>> are commited, which increases the overall revision, but not the
>>> revision of file README. So, when my users see that file, they see a
>>> different revision number than the revision number of their working
>>> copies.
>>>
>>> How can I have my file show the revision number of the working copy ?
>>>
>>> Yes, I've already RTFM.
>>
>> I believe your only option is to segregate what to you is a distinct
>> "project" into its own repository, because the revision numbers in
>> svn are repository-wide. Or, I suppose, you change your process and
>> how you make use of the revision numbers you get.
>
> fj, that's not the issue at all. The problem is that Leonel wants the
> README to contain the latest revision of any file of the project, but
> the $Rev$ keyword only expands to the latest revision of the README file.
>
>
> Leonel, you'll probably need to do it as in this FAQ item:
>
> http://subversion.tigris.org/faq.html#version-value-in-source
>
> You'll have a file like README.in from which, in conjunction with the
> svnversion command, you can generate the final README that you
> distribute.
>
ryan - you're correct. I mis-read Leonel's description.
thank you.
-fj
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: SVN Revision of a whole working dir as a keyword ?
Posted by Ryan Schmidt <su...@ryandesign.com>.
On Sep 18, 2007, at 18:01, fj wrote:
> Leonel Gayard wrote:
>
>> I have a README file at the root of my project. In this README
>> file, I
>> have written: "This is project Blah, revision $Rev$".
>>
>> SVN correctly substitutes the $Rev$ keyword with the revision number
>> of file README. The problem is, sometimes other files in the project
>> are commited, which increases the overall revision, but not the
>> revision of file README. So, when my users see that file, they see a
>> different revision number than the revision number of their working
>> copies.
>>
>> How can I have my file show the revision number of the working copy ?
>>
>> Yes, I've already RTFM.
>
> I believe your only option is to segregate what to you is a
> distinct "project" into its own repository, because the revision
> numbers in svn are repository-wide. Or, I suppose, you change your
> process and how you make use of the revision numbers you get.
fj, that's not the issue at all. The problem is that Leonel wants the
README to contain the latest revision of any file of the project, but
the $Rev$ keyword only expands to the latest revision of the README
file.
Leonel, you'll probably need to do it as in this FAQ item:
http://subversion.tigris.org/faq.html#version-value-in-source
You'll have a file like README.in from which, in conjunction with the
svnversion command, you can generate the final README that you
distribute.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: SVN Revision of a whole working dir as a keyword ?
Posted by fj <fj...@effjay.com>.
I believe your only option is to segregate what to you is a distinct
"project" into its own repository, because the revision numbers in svn
are repository-wide. Or, I suppose, you change your process and how you
make use of the revision numbers you get.
cheers,
- fj
Leonel Gayard wrote:
> Hi,
>
> I have a README file at the root of my project. In this README file, I
> have written: "This is project Blah, revision $Rev$".
>
> SVN correctly substitutes the $Rev$ keyword with the revision number
> of file README. The problem is, sometimes other files in the project
> are commited, which increases the overall revision, but not the
> revision of file README. So, when my users see that file, they see a
> different revision number than the revision number of their working
> copies.
>
> How can I have my file show the revision number of the working copy ?
>
> Yes, I've already RTFM.
>
> []'s
> Leonel
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org