SVN Checkout with @version $Id$ set

╄→尐↘猪︶ㄣ 提交于 2019-12-02 20:26:21

问题


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.


回答1:


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:

  • Fill @version tag with subversion in Eclipse
  • How to use custom keywords in SVN


来源:https://stackoverflow.com/questions/4835780/svn-checkout-with-version-id-set

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!