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

Re: How to get Tortoise to update author,Revision,Date, Source

From: Ivan Cenov <i_cenov_at_botevgrad.com>
Date: 2007-08-11 09:31:29 CEST

blewis999 ??????:
> Hi
>
> I am new to Tortoise SVN and used to use Tortoise CVS although I had a
> very minimal grasp of that system. I used to be able to have Tortoise
> CVS update the following into the files if there were certain
> delimiters in the code. Is there a way to do this in SVN. I have
> looked through the documentation but can't see the entries.
>
> This really is an awesome program; it has saved me many times.
>
> $Author: Copyright iMn MicroControl Ltd. - Robert Lewis$
> $Revision: 1.23 $
> $Date: 2007/06/20 03:11:52 $
> $Source:
> G:/cvsrepo-may-30-2005/FreescaleDemo/Common/lcdDispFcns.c,v $
>
> Thanks for the help
>
> Robert Lewis
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tortoisesvn.tigris.org
> For additional commands, e-mail: users-help@tortoisesvn.tigris.org
>
>
Hi, try this:

1. Put

// $Id$

in the files in which you want Revision information.

2. In SubVersion config file
(it resides somewhere in C:\Documents and
Settings\/username/\Application Data\Subversion)
in the section [auto-props] put something like this:

*.c = svn:eol-style=native;svn:keywords=Id
*.cpp = svn:eol-style=native;svn:keywords=Id
*.h = svn:eol-style=native;svn:keywords=Id

You may try with other keywords too,
*.h = svn:eol-style=native;svn:keywords=Id, Revision, Author

(Oops, I don't know if there are needed the commas or the spaces are
sufficient.)

3. Commit changes.

-- 
Regards,
Ivan Cenov
OKTO-7 Co., Botevgrad, Bulgaria
i_cenov@botevgrad.com, imc@okto7.com
  GSM: +359 888 76 10 80
phone: +359 723 6 61 20, +359 723 6 61 61
  fax: +359 723 6 62 62
Received on Sat Aug 11 09:29:38 2007

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.