TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
Advertisement
Associates
Associates
techtuts Darkmindz
CSS Tutorials Tutorialsphere.com - Free Online Tutorials
Boston PHP SurfnLearn
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 08-10-2008, 11:26 PM   #1 (permalink)
The Gregarious
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Cana'derr
Posts: 653
Thanks: 24
delayedinsanity is on a distinguished road
Default 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
delayedinsanity is offline  
Reply With Quote
Old 08-23-2008, 07:11 PM   #2 (permalink)
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 125
Thanks: 0
wGEric is on a distinguished road
Default

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.
__________________
Eric
BlogphpBB
wGEric is offline  
Reply With Quote
Old 08-23-2008, 07:33 PM   #3 (permalink)
The Gregarious
 
delayedinsanity's Avatar
 
Join Date: Mar 2008
Location: Cana'derr
Posts: 653
Thanks: 24
delayedinsanity is on a distinguished road
Default

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
delayedinsanity is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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

 
     

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