0

I develop in Subversion, and at the top of each and every PHP file I have the following comment block;

<?php 

if(!defined('BASEPATH')) die('Direct Script Access is not allowed.');

/**
 * Project Name
 *
 * @author Sheldon Lendrum
 * @version $Id$
 * @copyright __MyCompanyName__, 29 January, 2011
 * @package default
 **/

What I would like to do is when exporting it( or even checking out on the main server, to set that $Id$ of the current head ?

I use Subversion on OSX and Debian for my primary web servers.

MrPHP
  • 932
  • 2
  • 7
  • 19

1 Answers1

2

You need to set the svn:keywords property on your files in your repository.

Check out keyword documentation from the subversion book.

Other Stack Overflow questions you might find useful:

Community
  • 1
  • 1
meouw
  • 41,754
  • 10
  • 52
  • 69