version-control - 详细 p4 同步

标签 version-control perforce

在可视化 Perforce 客户端 (p4v) 中,有一个选项:

显示文件操作的 p4 命令输出

启用后,在日志 Pane 中我可以看到如下详细日志记录:

p4 sync /Users/az/ftp/...#head
//depot/ftp/inc/PICHNL.H  updated  /Users/az/ftp/inc/PICHNL.H
//depot/ftp/src/ftpprot.cpp  updated  /Users/az/ftp/src/ftpprot.cpp
2 files updated

perforce客户端命令行中有类似的东西吗?

在命令行中(Cygwin 在 Hudson CI 中运行)执行:

p4 sync /Users/az/ftp/...#head

在整个同步完成之前不显示任何内容。

我希望在进行 p4 同步 时进行详细日志记录。

最佳答案

抱歉,没有更多可用于在 CLI 中运行命令的详细日志记录。当您执行p4同步//...时,它会报告它可以报告的所有信息。事实上,在 P4V 中执行同步与通过 CLI 执行同步之间的唯一区别是 P4V 会告诉您它已更新了多少文件。

P4V 中的显示文件操作的 p4 命令输出选项

displays all commands issued by P4V, including commands issued by P4V to obtain status information from the Perforce server. Source: P4V Help file

关于version-control - 详细 p4 同步,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3246463/

相关文章:

git - 为什么我的 .gitattributes 文件不能在我的 Mac 上运行?

version-control - Mercurial 存储库 URL 等效于 SVN 信息

强制 : is there any better way to comment one line in client spec?

visual-studio - 如何在 Visual Studio 中重构而不丢失源代码管理历史记录?

svn - 使用 SharePoint 进行源代码控制?

git - 如何将 git 分支转换为 mercurial 命名分支?

没有 .git 目录的 Git 克隆

perforce - P4 GREP - 如何按所有子目录中的内容搜索特定文件

git - 为什么我得到 "git status --porcelain failed"?

cygwin - 每个文件的 Perforce 行尾数