English 中文(简体)
如何重置Subversion$Id$标记?
原标题:How to reset Subversion $Id$ tag?
  • 时间:2011-02-03 18:02:21
  •  标签:
  • svn

大家好,我从我正在做的一个项目中删除了我的文件,并重新检查了一遍。然而,即使我的客户端被配置为识别$Id$标记,它现在也不再更新它们。

我的配置文件如下:

[miscellany]
enable-auto-props = yes

[auto-props]
*.php = svn:keywords=Id
*.js = svn:keywords=Id

我已经跑了:

find . ( -name "*.php" -o -name "*.js" ) -exec svn propset svn:keywords Id {} ;

尽管如此,它并没有更新$Id$标签。我必须以某种方式重置这些吗?

问题回答

源存储库中的文件本身是否有svn:keywords属性?

自动属性[auto-props]仅适用于文件,而不适用于Subversion存储库中已有的文件。自动属性的想法是在执行svn-add时自动将属性附加到文件。

要添加svn:keywords属性,请执行以下操作:

$ svn propset svn:keywords "Id" $FILE_NAME
$ svn commit -m"Added Id Keyword to file"




相关问题
Best practices for Subversion and Visual Studio projects

I ve recently started working on various C# projects in Visual Studio as part of a plan for a large scale system that will be used to replace our current system that s built from a cobbling-together ...

Changing username in SVN+SSH URI on the fly in working copy

I am using SVN+SSH to check out a working copy of repository from an SVN server on which all developers are members of a developer group and have full read/write permissions on the repository ...

ASP.NET MVC: How should it work with subversion?

So, I have an asp.net mvc app that is being worked on by multiple developers in differing capacities. This is our first time working on a mvc app and my first time working with .NET. Our app does not ...

How to search for file in subversion server?

Is there a way to search for a file in a subversion repository? Something similar to Unix find command, with which I can find the location of a file in a repository. I know there is svn list, but ...

热门标签