简体   繁体   English

SVN命令,用于基于修订号重新提交还原更改

[英]SVN command for recommit the revert changes based on revision number

I reverted the committed files using svn command 我使用svn命令还原了提交的文件

svn merge -r:73:68 http://my.repository.com/my/project/trunk
svn commit -m "Reverted to revision 68."

I have to recommit the revision number 73 changes again, is that possible? 我必须重新提交修订号73的更改,这可能吗?

I have to recommit the revision number 73 changes again, is that possible? 我必须重新提交修订号73的更改,这可能吗?

You can't and you don't have to. 您不能,也不必。 One of the key features of SVN is that revision history in Subversion repository is immutable. SVN的主要功能之一是Subversion存储库中的修订历史是不可变的。

You can't rewrite the history of changes, but there should be no problems to commit this change as a new revision. 您无法重写更改历史记录,但是将更改作为新修订提交应该没有问题。

Read SVNBook | 阅读SVNBook | Undoing Changes . 撤消更改

Its not really needed to re-write the history and there is no real feature in svn too. 不需要真正重写历史记录,并且svn中也没有真正的功能。 Its always good to maintain the entire history. 保持整个历史始终是一件好事。 So the possible solution would be, Modify the changes and commit back which will create one more revisions. 因此,可能的解决方案是,修改更改并重新提交,这将创建另一个修订。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM