English 中文(简体)
SVN全球忽略不计(其他员额的解决方案没有发挥作用)
原标题:SVN global ignores is not working (solutions from other posts are not working)
  • 时间:2012-04-19 19:24:08
  •  标签:
  • svn

我参加了我的颠覆/会议,并添加了打字,但从svn diff来看,我们看到它没有发挥作用。

~/Space/ifp-integration/CIGNA-IFP-ESB$ svn diff
Index: .settings/org.eclipse.jdt.core.prefs
===================================================================
--- .settings/org.eclipse.jdt.core.prefs    (revision 2014)
+++ .settings/org.eclipse.jdt.core.prefs    (working copy)
@@ -1,6 +1,15 @@

这表明有人必须接受检查,但我不关心,因为我想要么忽视。 是否有办法确保这一点被忽视?

最佳回答

你可以无视你存放的脚.。 这并不忽视颠覆工作。

忽视只是防止accidentally<><>adding向存放处提交档案的一种途径。 如果存放处已经存在档案,你可以无视档案。

全球忽视只适用于档案而不是名录。 如果你在颠覆组合档案中无视<代码>.设定s,则不会忽视一份称为的名录。 而且,如果已经存放在存放处,它只会忽视<代码>.dings文档。

基本上,如果你说<代码>svn 添加* 或svn status,任何不属于存放处、与您的全球忽视赞助者相匹配的档案将不列入<编码>svn status。 所有这一切都是如此。

您可在一份名为svn:ignore的名录上创造类似财产。 但是,<代码>svn:ignore也将忽视名录。 例如,如果你有一个Maven项目,你可以设定svn:ignore=target,并报告目标倍数。 但是,<代码>svn:ignore只适用于该财产在册而不是在册的目录。

因此,你如何忽视<代码>.制定的名录? 简单: 你们不要阻止。 不幸的是,在颠覆方面没有任何简单的做法。 在这方面,你可以做些什么:

$ svn checkout --depth=immediates http://server/src/myproj

这将检查你的工作名录中的所有文件夹和档案,但不包括任何子目录。 在Kornshell和BASH(如果你制定<条码>-s extglob):

$ svn update --set-depth=infinity !(.settings)

除<编码>外,将继续在您的所有名录中进行核对。

也可以这样做:

$ svn update --set-depth=exclude .settings

删除<代码>。 这 t取了存放处的<代码>.ings. 名录,但将删除.dings在您的工作名录上的名录;svn diff(关于您的工作名录(但不是《URL》的存放处)将不报告中的任何内容。

重要要点 我要强调: Ignore only prevent the accidental addition of a file into You Deposit. 它不阻止任何人加入该公约,一旦出现,它就遭到忽视。

Also, your global ignore settings are not global to everyone. Just to you. If you want to prevent people from adding files that shouldn t be added to the repository, you ll need a pre-commit hook like this one.

这种 h可用于防止特定名字的档案或目录被投入使用,还可以用来确保档案和目录上的财产被确定。 例如,你可能希望确保人们能够在<条码>上添加内容。 或者,svn:ignore property on the行文,将忽略.dings.

问题回答

暂无回答




相关问题
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 ...