文件夹结构移动到另一个

文件夹结构移动到另一个

本文介绍了从一个 SVN 文件夹结构移动到另一个的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们有一个文件夹结构如下的SVN服务器:

We have an SVN Server with a folder structure as follows:

/svn/CompanyName/Trunk/Project

其中公司名称是项目,所有内容都已签入,所有内容都在主干中,每个项目都有一个文件夹...在某些情况下,我们的项目后面有 v2 或 v3...这是设置大约 5 或 6 年前,我在去年接受了它......

where company name is the project everything gets checked into, everything is in the trunk and each project has a folder... in some cases, we have projects which have a v2 or v3 after them... this was set up about 5 or 6 years ago and i kind of took it on last year...

我升级计划的一部分是移动一些东西,所以我们有以下结构:

part of my upgrade plan is to move stuff around so we have the following structure:

/svn/projectname/(trunk|tags|branches)/

计划是从项目的最新版本中取出所有文件并将其放入主干中,如果有项目的 v2 或 v1,则将它们放在自己的分支中...

the plan would be to take all files from the latest release of a project and place it into the trunk, and if there is a v2 or v1 of a project, put them in their own branch...

到目前为止,我已经想出了如何让 svnadmin dump 和 svndump-filter 为我找到一个特定的文件夹(所以,svn/companyname/trunk/project1)并获得了 2 个测试项目(projectv1 和 projectv2).现在我需要告诉项目 v1 导入到 project/branch/v1 并告诉项目 v2 导入到/project/trunk...

so far, i have figured out how to get svnadmin dump and svndump-filter working to get me a particular folder (so, svn/companyname/trunk/project1) and got 2 tests projects out (projectv1 and projectv2). now i need to tell project v1 to import into project/branch/v1 and tell project v2 to import into /project/trunk...

关于如何重命名文件夹并保留历史记录的任何想法,除了直接使用转储文件之外?

any ideas, other than messing directly with the dump file, on how to rename folders and keep the history?

推荐答案

环顾四周,根据@malenkiy_scot 关于编辑文件的评论,我在 openSUSE lizards 站点上发现了一篇关于 合并 SVN 存储库.这似乎完成了我需要它做的事情,包括重命名文件夹、合并转储文件等...

looking around, based on the comment @malenkiy_scot made about editing the file, i found an article on the openSUSE lizards site about merging SVN Repositories. this seems to do what i need it to do, including the renaming of folders, merging of dump files, etc...

这篇关于从一个 SVN 文件夹结构移动到另一个的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-20 22:07