本文介绍了如何在 Perforce“depots"之间移动文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

前几天无意中删除了我的 Svn 存储库后,我想尝试其他方法,并且我选择了 Perforce 作为我当前的版本控制工具测试场.进展顺利,我喜欢在 Perforce 中看到的内容.

After deleting my Svn repo by accident the other day I wanted to try something else and I have chosen Perforce as my current versioning tool testing ground. It is going great and I am liking what am seeing in Perforce.

这是我的问题.我已将我的文件提交到我的 Perforce 服务器,然后使用我的客户端电脑从主 Perforce 服务器获取这些项目.现在一切都很好,只是我意识到在 Perforce 中可以使用多个仓库",对我来说,为了组织的缘故,我应该将其中一些项目移到另一个仓库 fpr 是有道理的,也许出于安全原因客栈案例.

Here is my problem. I have submitted my files to my Perforce server and then used my client pcs to grab those projects from the master Perforce server. Now all works great except that I realized that it is possible to use more than a single "depot" in Perforce, and it makes sense to me that I should just move some of those projects to another depot fpr the sake of organization and and maybe for security reasons inn case.

我一直在寻找一些答案,我找到了几个答案,但是我无法产生任何预期的结果,因此我在这里寻找一些专家建议.

I have been looking for some answers, and I have found couple of them however I am unable to produce any intended results thus I am looking for some expert advice here.

我试过的其中一个页面是这个

One of the pages I have tried is this one

http://kb.perforce.com/article/24/renaming-仓库目录

似乎提供了一种解决方案,但是我无法将文件从一个软件仓库移动到同一服务器进程上的另一个软件仓库.该页面中的示例适用于将某个文件夹移动到同一仓库中的文件夹.该示例似乎演示了移动到同一仓库下的另一个文件夹.

Seems to offer a solution, however I have not been able to move files from one depot to another depot that is on the same server process. The examples in the page works fine for moving some folder to a folder in the same depot. The example seems to demonstrate moving to another folder under the same depot.

因此,我正在寻找一种合理且安全的方法,将我的 Perforce 主仓库文件夹移动到同一台服务器上的另一个仓库,并且不会丢失任何工作.

So I am looking for a reasonable and safe way to move my master Perforce depot folders to another depot that is on the same server, and naturally without loosing any work.

这就是我想要的

-- 当前

//Depot-A
 -->folder1
 -->folder2

--我想要

//Depot-A
 -->folder1

//Depot-B
 -->folder2

谢谢

推荐答案

在不同 depot 之间移动文件与在同一 depot 内的文件夹之间移动文件没有什么不同,除了目标 depot 必须已经存在.使用您的示例,并假设Depot-B"尚不存在,要将folder2"从Depot-A"移动到Depot-B",您只需执行以下操作:

Moving files between different depots is no different than moving files between folders within the same depot, with the exception that the target depot must already exist. Using your example, and assuming "Depot-B" doesn't exist yet, to move "folder2" from "Depot-A" to "Depot-B", you would simply do this:

p4 depot Depot-B
p4 edit //Depot-A/folder2/...
p4 move //Depot-A/folder2/... //Depot-B/folder2/...
p4 submit

这篇关于如何在 Perforce“depots"之间移动文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-25 08:45