LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Subversion timestamp in file (https://www.linuxquestions.org/questions/linux-software-2/subversion-timestamp-in-file-445800/)

darkarcon2015 05-17-2006 03:26 PM

Subversion timestamp in file
 
After looking at several online applications, I have noticed that many have something similar to this (phpBB example)

Code:

/***************************************************************************
 *                              memberlist.php
 *                            -------------------
 *  begin                : Friday, May 11, 2001
 *  copyright            : (C) 2001 The phpBB Group
 *  email                : support@phpbb.com
 *
 *  $Id: memberlist.php,v 1.36.2.10 2004/07/11 16:46:15 acydburn Exp $
 *
 ***************************************************************************/

I have just started using subversion and was wondering how you get something like that; more specifically, the "$Id" line? Or... is this only something with CVS, or not even related to either? Thanks a lot.

darkarcon2015 05-17-2006 07:45 PM

I figured it out in case anyone else ever needs to know:

First you need to put the $Id:$ variable in your code where you want to add the ID line. Then you run the following command:

Code:

svn propset svn:keywords "Id" filename
Then you svn commit your files and your done.

Find more information on propset here.


All times are GMT -5. The time now is 10:29 PM.