SVN sources $Id$

If you deploy source files to some production server,
it would be nice to have $Id$ mark in our sources.

Just place for example:

<?php
/**
* @version $Id$
*/

So, it will be:

<?php
/**
* @version $Id: some_file.php 548 2010-02-14 11:48:28 user1 $
*/

Also, set the svn:keywords property on the command line:
    svn propset svn:keywords “Id” some-file.php

If you need that for several (or even all) files you need to do that propset for each one.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: