如何强制Subversion提交未更改的文件? [英] How can I force subversion to commit an unchanged file?

查看:69
本文介绍了如何强制Subversion提交未更改的文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我希望Subversion提交文件,即使文件没有更改。有办法吗?

I want subversion to commit a file even if it's unchanged. Is there a way to do this?

推荐答案

如果您希望文件内容保持不变(这意味着您不能仅仅按照johnstok的建议更改空白)。您始终可以更改文件上的属性之一。

If you want the file contents to remain unchanged (meaning that you can't merely change whitespace as johnstok suggested) you can always change one of the properties on the file.

例如。


svn propset dummyproperty 1 yourfile
svn commit yourfile

这将执行一次提交而无需更改

That will perform a commit without having to change the file.

只需确保您没有使用特殊的 svn:属性之一。

Just make sure that you don't use one of the special svn: properties. Anything else should be ok.

编辑:
许多其他张贴者问为什么有人要这样做-大概把这个答案记下来的人也有同样的担忧。

A number of other posters have asked why someone would want to do this - presumably the people who have marked this answer down have also had the same concerns.

我不能代表原始海报,但是有一种情况看到这是在尝试自动将Visual Sourcesafe存储库中的活动与Subversion存储库进行同步时。

I can't speak for the original poster, but one scenario where I have seen this used is when attempting to automatically synchronise activities on a Visual Sourcesafe repository with a subversion repository.

这篇关于如何强制Subversion提交未更改的文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆