在 Perforce P4V 中,如何搜索特定文件夹中包含文件的更改列表?

发布于 2024-08-19 23:53:44 字数 331 浏览 1 评论 0原文

在 Perforce P4V 中,我想搜索所有包含来自特定文件夹集的文件的更改列表,所有这些更改列表的文件夹名称中都有“index”,并且开头还有另一个文件夹。例如,我想查看以下文件夹中任何文件的所有更改列表:

\depot\abc\def\table\index*.*

\depot\abc\ghi\table\index*.*

所以基本上任何与pattern

\depot\abc\...\table\index*.*

但这似乎不起作用。有什么想法吗?还有关于在线使用 perforce 通配符的详细信息吗?我没能找到很多。这应该是很多人都需要做的事情吧……

In Perforce P4V, I'd like to do a search for all changelists that have files from a particular set of folders, that all have "index" in the folder name, and also have another folder at the beginning. For instance, I want to see all changelists against any files in folders like these:

\depot\abc\def\table\index*.*

\depot\abc\ghi\table\index*.*

so basically any folders that match the pattern

\depot\abc\...\table\index*.*

But this doesn't appear to work. Any ideas? Also is there any detailed information on using perforce wildcards online? I was not able to find a whole lot. This must be something that lots of people need to do...

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

带刺的爱情 2024-08-26 23:53:44

我在 Windows 上使用 P4V,在 Linux 上使用“p4”命令行客户端。您所要求的实际上使用了两个 Perforce 客户端命令:

  • p4 更改
  • p4 描述

具体来说,在 P4V 上,这是在菜单选项“查看->提交的更改列表”下完成的(Ctrl+2)。这应该会打开一个用于搜索的选项卡。在“文件夹/文件”输入字段中,键入路径表达式,如下所示:

//depot/main/app/python/SiteControl/.../*.html

当我针对我的软件仓库运行此表达式时,我会得到一个更改列表列表。当我单击更改列表时,它会扩展为文件列表。与模式 *.html 匹配的文件具有正常的字体粗细/颜色,不匹配的文件显示为“灰色”。这有道理吗?

类似地,更具体地针对您的问题/用法,您可以使用通配符来表示“名称开头带有索引的所有文件”,如下所示:

//depot/main/app/python/SiteControl/.../index.*

现在只是为了进行比较,再次运行它但删除“/index.*” " 来自路径表达式。现在您将看到库路径下所有提交的变更列表 - 而不仅仅是包含 html 文件的变更列表。此外,所有文件都将以正常字体粗细/颜色显示。

HTH,

-aj

I use both P4V on Windows and I use the 'p4' command line client on Linux. What you're asking for actually uses two Perforce client commands:

  • p4 changes
  • p4 describe

On P4V specifically, this is done under the menu option View->Submitted Changelists (Ctrl+2). This should open a tab for searching. In the Folder/file input field, type a path expression, like this:

//depot/main/app/python/SiteControl/.../*.html

When I run this against my depot, I get a list of changelists. When I click on a changelist, it expands to a list of files. The files matching the pattern *.html are in normal font weight/color, and the non-matching files are "greyed out". Does that make sense?

Similarly, and more specific to your question/usage, you can use a wildcard to say "all files with index at the beginning of their name", as so:

//depot/main/app/python/SiteControl/.../index.*

Now just to compare, run it again but remove the "/index.*" from the path expression. Now what you'll see are all of the submitted changelists under the depot path - not just the ones that contain html files. Additionally, all files will appear in normal font weight/color.

HTH,

-aj

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