如何在 Linux Subversion 中合并 Windows Subversion 中的两个目录

发布于 2024-11-02 17:11:43 字数 351 浏览 4 评论 0原文

我在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

放我走吧 2024-11-09 17:11:43

以下是将存储库从一种设置转移到另一种设置的方法:

  • 创建 Windows 存储库的转储:

    svnadmin dump /path/to/windows-repo > svnadmin dump /path/to/windows-repo >窗口转储
    
  • 在 Unbuntu 服务器上创建新的存储库:

    svnadmin create /path/to/ubuntu-repo
    
  • 如果新存储库仍为空,则将转储导入到新的 ubuntu 存储库中:

    svnadmin load /path/to/ubuntu-repo <;窗口转储
    

请注意,如果您已经在新存储库中提交了修订,则导入的存储库的修订号将不再是同样,你的教授也必须进行彻底的检查。另外,我建议在运行svnadmin load之前进行备份,以防万一它没有达到您的想象,并且您需要添加一些命令的选项,或阅读更多深入说明如何实现这一目标。

Here's how to transfer a repository from one setup to another:

  • Create a dump of the windows repo:

    svnadmin dump /path/to/windows-repo > windows.dump
    
  • Create the new repo on your Unbuntu server:

    svnadmin create /path/to/ubuntu-repo
    
  • Import the dump into the new ubuntu repo if the new repo is still empty:

    svnadmin load /path/to/ubuntu-repo < windows.dump
    

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.

街道布景 2024-11-09 17:11:43

您必须创建教授的存储库的转储并将其加载到您的存储库中,在存储库中提供一个目录,您希望将教授的存储库文件基于其中

svnadmin dump /path/to/repo/professorrepo > professor-dumpfile

svnadmin load /path/to/repo/yourrepo --parent-dir professor/ < professor-dumpfile

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

svnadmin dump /path/to/repo/professorrepo > professor-dumpfile

svnadmin load /path/to/repo/yourrepo --parent-dir professor/ < professor-dumpfile

where professor/ will be the root folder where the files from professor repo will be put in your repo.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文