TalkPHP

TalkPHP (http://www.talkphp.com/forums.php)
-   The Lounge (http://www.talkphp.com/lounge/)
-   -   SVN, @version ?? (http://www.talkphp.com/lounge/3228-svn-version.html)

delayedinsanity 08-10-2008 10:26 PM

SVN, @version ??
 
Okay, so I'm finally figuring out how to use SVN. One thing I can't figure out, and haven't been able to find in the documentation though, is how to include this in my file headers:

* @version $Id: Exception.php 8064 2008-02-16 10:58:39Z thomas $

I'm assuming there's some way to dynamically have the revision information included in the page header of my files, but I haven't determined how to do that. Anybody know?
-m

wGEric 08-23-2008 06:11 PM

I believe it's just $id$ or something like that. You can include the line you posted and it should update it when you commit the file.

Also you don't need @version. All you need is the $Id$ part. @version is used for documentation like phpdoc.

delayedinsanity 08-23-2008 06:33 PM

Nah, no automatic updates. I think somehow I have to tell it to update that tag, but I'm not quite sure how. I finally found something from google about it here:

[Linux] Journal SVN Id Tags

It states that updating of the $id$ tag isn't automatic with SVN, as it must be with CVS and that I need to turn it on.

AHAH. I figured it out. I have to go in and set the svn:keywords property to every file in the repository (ooooh, fun), and then it doesn't modify it on commit, only on update. 4 commits later on one file to figure that out haha, hope nobody looks at the revision history of that one.
-m


All times are GMT. The time now is 10:02 PM.

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0