在 Perforce P4V 中,如何搜索特定文件夹中包含文件的更改列表?
在 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我在 Windows 上使用 P4V,在 Linux 上使用“p4”命令行客户端。您所要求的实际上使用了两个 Perforce 客户端命令:
具体来说,在 P4V 上,这是在菜单选项“查看->提交的更改列表”下完成的(Ctrl+2)。这应该会打开一个用于搜索的选项卡。在“文件夹/文件”输入字段中,键入路径表达式,如下所示:
当我针对我的软件仓库运行此表达式时,我会得到一个更改列表列表。当我单击更改列表时,它会扩展为文件列表。与模式 *.html 匹配的文件具有正常的字体粗细/颜色,不匹配的文件显示为“灰色”。这有道理吗?
类似地,更具体地针对您的问题/用法,您可以使用通配符来表示“名称开头带有索引的所有文件”,如下所示:
现在只是为了进行比较,再次运行它但删除“/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:
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:
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:
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