简体   繁体   English

perforce较短的客户端目录结构

[英]perforce shorter client directory structure

This is a very basic query, but I am using perforce to create a workspace for a particular project that is deep in the depot directory. 这是一个非常基本的查询,但是我正在使用perforce为仓库目录中深处的特定项目创建工作区。 Hence, on windows I am facing a warning as to "File name ... exceeds the limit of 260 characters" I am trying to search a way to limit the folder structure to something just like : "C:\\p4\\dept.. " without the long list of folders. 因此,在Windows上,我面临“文件名...超过260个字符的限制”的警告,我正在尝试寻找一种将文件夹结构限制为类似于“ C:\\ p4 \\ dept。”的方法。 ”,而不包含一长串的文件夹。 Is there an easy way to do this? 是否有捷径可寻? I have come across following similar solution on : [ http://answers.perforce.com/articles/KB/3051?startURL=%2Farticles%2FKB_Article%2FSubmitting-or-Syncing-Files-with-Long-Path-Names][1] 我在以下网址上遇到了以下类似的解决方案:[ http://answers.perforce.com/articles/KB/3051?startURL=%2Farticles%2FKB_Article%2FSubmitting-or-Syncing-Files-with-Long-Path-Names] [ 1]

But, cannot find out the command execution. 但是,无法找出命令执行。 Is there a better, easier way to do this ? 有没有更好,更简单的方法来做到这一点?

The local paths (which exceed 260 chars in your case) are composed by concatenating 本地路径(在您的情况下超过260个字符)是由串联组成的

  1. the workspace root 工作区根
  2. the paths (relative to the workspace root) as defined by your mapping. 映射定义的路径(相对于工作区根)。

To shorten the two, open Connection > Edit Current Workspace in P4V. 要缩短两者,请在P4V中打开“连接”>“编辑当前工作区”。 Then 然后

  1. Shorten your Workspace root (eg to C:\\p4 ) 缩短您的工作区根目录 (例如,到C:\\p4
  2. Shorten your mappings: 缩短映射:
    1. In the same dialog as above, expand Workspace Mappings . 在与上述相同的对话框中,展开“ 工作空间映射” This may be displayed as a graphical tree view. 这可以显示为图形树视图。 If that's the case, click one of the icons near its top-right corner to switch to a text-area view. 在这种情况下,请单击右上角附近的图标之一以切换到文本区域视图。
    2. In the text-area view, each line has two parts: the depot path and the local path. 在文本区域视图中,每一行都有两部分:仓库路径和本地路径。 The local path is something like //foo/some/relative/path/to/bar , where foo is your Workspace name . 本地路径类似于//foo/some/relative/path/to/bar ,其中foo是您的工作区名称 Shorten it to something like //foo/bar . 将其缩短为//foo/bar类的东西。

This should produce much shorter local paths. 这将产生更短的本地路径。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM