重命名目录,现在 SVN 不允许我提交 [英] Renamed directory, now SVN not allowing me to commit

查看:37
本文介绍了重命名目录,现在 SVN 不允许我提交的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个名为 old dir 的目录(一个 Maven 项目).

I had a directory (a maven project) called old dir.

我通过在 Tortoisesvn 中执行 svn 重命名将名称更改为新目录.

I changed the name to new dir by doing an svn rename within Tortoisesvn.

如果您执行 svn status,我会看到它在新目录上完成了 SVN 添加,并在旧目录上完成了 svn 删除.在 Tortoisesvn 下提交时,目录及其内容被列为已添加或已删除,因此似乎双方"都在提交.但是,提交会出现此错误.

If you do svn status, I see it's done an SVN add on the new dir and and an svn delete on the old dir. When committing under Tortoisesvn, the directories and their contents are listed as either added or deleted, so it does appear that both 'sides' are being committed. However, committing gives this error.

svn: Commit failed (details follow):
svn: Cannot commit 'path\to\new dir' because it was moved from 'path\to\old dir' which is not part of the commit; both sides of the move must be committed together

一个相关的问题:重命名文件,现在SVN不允许我提交?

推荐答案

由于目录是 Maven 项目,所以新目录中有未版本化的文件.mvn clean 在新目录上意味着旧目录和新目录匹配,因此允许 svn 提交.

As the directory is a maven project, there were unversioned files in the new dir. mvn clean on the new dir meant that the old and new directories matched, and so the svn commit was then allowed.

这篇关于重命名目录,现在 SVN 不允许我提交的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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