重命名SVN存储库项目名称 [英] Renaming SVN repository project name

查看:1051
本文介绍了重命名SVN存储库项目名称的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经将项目从CVS迁移到SVN.现在,我需要重命名该项目.重命名所有历史记录的最佳方法是什么.项目文件夹包含大约100个C及其头文件.

I have migrated a project from CVS to SVN. Now I need to rename that project. What can be the best possible way to rename it, keeping the all the history intact. The project folder contains some 100 numbers of C and its header files.

推荐答案

Subversion中没有内置机制来重命名存储库.

There is no built-in mechanism in Subversion to rename a repository.

维护完整性和历史记录的最佳选择是对旧存储库执行存储库转储,然后将转储重新导入到新存储库中.

The best option in order to maintain integrity and history is to perform a repository dump of the old repository and then re-import the dump into a new repository.

我在这里写了一篇关于此的帖子:如何重命名SVN存储库.

I wrote a post about this here: How To Rename an SVN repository.

您只需要使用 svnadmin 实用程序,然后 svnadmin创建新存储库, svnadmin dump 以前存储库中的内容最后将 svnadmin导入转储到使用 svnadmin create 创建的新存储库中.

You will only need to use the svnadmin utility, and then svnadmin create a new repository, svnadmin dump the contents of the previous repository and finally svnadmin import the dump into the new repository that you had created using svnadmin create.

编辑

如果您需要在存储库中重命名项目"(按项目,我假设您指的是目录),那么您只需要使用

If you need to rename a "project" inside the repository -- and by project I assume you mean a directory -- then you simply need to use the svn move command. Note that this is done using the svn client, not svnadmin. The svn move command's syntax is svn move SRC DEST and it allows you to basically preform a rename of a file or a directory inside of your repository. All history should be preserved for that file (or directory).

这篇关于重命名SVN存储库项目名称的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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