On Wed, Mar 25, 2015 at 4:21 AM, Milan Tortoise <
milan.vukoslavcevic_at_gmail.com> wrote:
>
> - You wrote:
> >> You must make sure that you *only* enable keyword substitution for your
> source files.
>
> I am working in big project I would not like to experiment a lot but
> to find clear example how it works, otherwise I have even bigger
> problem. If there is no examples I believe that TortoiseSVN does not
> support it (no one realy tested it).
It works just fine, I use it on a few files where I distribute them
internally without version control, and want to know what version
someone has if they find problems. YOU are probably better off capturing
the overall revision or tag of the working copy you test from rather
than embedding it in every file, but here is how to get it working
(details at
http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.html
):
1. Set the svn:keywords property, on the files you want to embed the
revision number in (and ONLY on those files), to include the value
"Revision". TortoiseSVN even gives you a nice checkbox dialog for
standard properties like this. If you want to get really crazy you
can even specify your own properties in the "advanced" editor; see
the custom keywords section in
http://svnbook.red-bean.com/en/1.8/svn.advanced.props.special.keywords.html.
I don't usually like to get really crazy.
2. In the files where you want to embed the revision number, insert text
"$Revision$" in a comment somewhere, then save and commit.
3. SVN now automatically substitutes this special text to include the
revision number on every commit, update, or export.
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3108347
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2015-03-25 15:59:12 CET