如何在 Linux Subversion 中合并 Windows Subversion 中的两个目录
我在 Ubuntu 服务器上有 subversion。在安装 Ubuntu 之前,我的教授曾经在 Windows 服务器上有 subversion 目录和文件。他曾经使用 tortoisesvn 来签出和提交文件。安装 Ubuntu 服务器后,我创建了一个 subversion 目录来签出、签入我的文件到服务器上。现在我的教授想将这些备份的目录和文件移动到服务器上的我的颠覆中。我尝试将它们导入存储库,但它们被添加为新文件(签出版本 1)。但 Windows Subversion 存储库中存在不同的版本或文件和目录。 我不确定是否清楚,但这就是我的情况。我可以转储文件吗,但由于整个目录已备份并移动到 ubuntu 服务器,我很困惑如何转储这些文件,以便他在签出时拥有完全相同的版本。
I have subversion on Ubuntu server. Before installation of Ubuntu my professor used to have subversion directories and files on windows server. He used to use tortoisesvn to checkout and commit the files. After the installation of Ubuntu server I had created a subversion directory to checkout,checkin my files onto the server. Now my professor wants to move those backed up directories and files onto my subversion on server. I tried importing those to the repository but those are being added as new files(checkout version 1). But there are different versions or files and directories existing in the windows subversion repository.
I am not sure if am clear but this is my situation. Can I dump the files, but since the whole directory is backed up and moved to the ubuntu server I am confused how to dump those files such that he will exactly has the same versions when he is checking out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
以下是将存储库从一种设置转移到另一种设置的方法:
创建 Windows 存储库的转储:
在 Unbuntu 服务器上创建新的存储库:
如果新存储库仍为空,则将转储导入到新的 ubuntu 存储库中:
请注意,如果您已经在新存储库中提交了修订,则导入的存储库的修订号将不再是同样,你的教授也必须进行彻底的检查。另外,我建议在运行
svnadmin load
之前进行备份,以防万一它没有达到您的想象,并且您需要添加一些命令的选项,或阅读更多深入说明如何实现这一目标。Here's how to transfer a repository from one setup to another:
Create a dump of the windows repo:
Create the new repo on your Unbuntu server:
Import the dump into the new ubuntu repo if the new repo is still empty:
Please note that if you already have committed revisions in the new repository, the revision numbers of the imported repo won't be the same, and your professor will have to make a clean checkout. Also, I recommend to make a backup before running
svnadmin load
, just in case it doesn't turn out as you imagined and you need to add some options to the command, or read more in-depth instructions on how to achieve that.您必须创建教授的存储库的转储并将其加载到您的存储库中,在存储库中提供一个目录,您希望将教授的存储库文件基于其中
professor/
将是文件所在的根文件夹来自教授的回购协议将被放入您的回购协议中。You have to create a dump of your professor's repo and load it in your's, giving a directory in your repo where you want to base your professor's repo files against
where
professor/
will be the root folder where the files from professor repo will be put in your repo.