SVN 无法识别更改的文件 [英] SVN is not recognizing the changed files

查看:53
本文介绍了SVN 无法识别更改的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在名为branch"的文件夹中进行了更改,现在它可以工作了,我想将所有 src 文件夹移动到文件夹trunk".但是通过从本地分支复制 src,粘贴到本地主干上并提交 SVN 不会提交任何内容.就像什么都没有改变.知道如何提交吗?

I had made changes in a folder called "branch", and now that its working I want to move all the src folder to the folder "trunk". But by copying src from local branch, pasting on local trunk and commiting the SVN commits nothing. Its like nothing had changed. Any idea how to commit this?

相关问题:如何强制 subversion 提交未更改的文件?(对我有用,但我对属性一无所知,确切地说我可以更改哪个属性以及使用哪个值不会使某些内容崩溃?)

Related question: How can I force subversion to commit an unchanged file? (Would work for me, but I know nothing about properties, exactly which one could I change and with which value to not crash something?)

推荐答案

你不能这样做,因为你要覆盖 svn 元数据,这会导致各种问题.

You cant do that because youre going to override the svn metadata which will cause all kinds of problems.

如果分支实际上是一个分支和一个工作副本,那么您需要阅读 svn merge 以将编辑返回到 trunk.

If branch was actually a branch and a working copy then you need to read up on svn merge to get the edits back to trunk.

如果它是工作副本之外的文件夹,那么最简单的方法是将 rsync 重新导入并使用 --exclude=.svn ,它不会同步 .svn 元数据.

If it was a folder outside of a working copy then the easiest way is to rsync it back in and use --exclude=.svn which wont sync the .svn metadata.

这篇关于SVN 无法识别更改的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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