Re: Re: Re: TortoiseSVN missing support of Revision update on Commit
From: Ryan Hathaway <rghathaway_at_starkcountyohio.gov>
Date: Wed, 25 Mar 2015 11:14:26 -0400
This works, and I use it in some projects.
You should make careful note, that it is the FILE revision of EACH file that is substituted in, and NOT the GLOBAL REVISION/current HEAD revision. This means that if file a.txt has keyword expansion turned on for $Revision$, and was last commited to SVN in Revision 4, it will substitute a 4 into the $Revision$ keyword area in a.txt until a.txt is changed by some other commit, even though the global revision of the repo goes up with every commit and your file still exists in higher-numbered revisions, the revision of your file remains 4.
This means if you include the value in some header in many files, you will likely have different revisions inserted into those different files, unless they were all committed in a single svn transaction.
I turn on keyword expansion for .cs files, and paste this common svn keyword expansion header at the top of every .cs file in some of my C# development projects:
/* $URL: https://redacted.servername:8443/redacted.path/redacted.filename.cs $
Thank you,
-Ryan
Ryan Hathaway
Programmer Analyst
Office of Alan Harold, Auditor
330-451-1414
***Please note: My email address has changed to rghathaway_at_starkcountyohio.gov ***
>>> Ben Fritz <fritzophrenic_at_gmail.com> 03/25/15 9:59 AM >>>
On Wed, Mar 25, 2015 at 4:21 AM, Milan Tortoise <milan.vukoslavcevic_at_gmail.com> wrote:
It works just fine, I use it on a few files where I distribute them
1. Set the svn:keywords property, on the files you want to embed the
------------------------------------------------------
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
|
This is an archived mail posted to the TortoiseSVN Users mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.