设置了@version $ Id $的SVN Checkout [英] SVN Checkout with @version $Id$ set
本文介绍了设置了@version $ Id $的SVN Checkout的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在Subversion中进行开发,在每个PHP文件的顶部,我都有以下注释块;
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
**/
我想做的就是导出它(甚至在主服务器上签出,以设置当前磁头的$ Id $吗?
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 ?
我将OSX和Debian上的Subversion用于主要的Web服务器.
I use Subversion on OSX and Debian for my primary web servers.
推荐答案
您需要在存储库中的文件上设置svn:keywords属性.
You need to set the svn:keywords property on your files in your repository.
从Subversion中检出关键字文档书.
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
这篇关于设置了@version $ Id $的SVN Checkout的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文