簡體   English   中英

Perforce,Linux - grep 用於刪除的 depot 文件中的內容

[英]Perforce, Linux - grep for content in deleted depot files

想知道我grep信息怎么才能在depot中刪除文件。 起初,我發現 perforce 支持搜索文件內容,如下所示:

p4 grep -i -n -e "infoSearch" //depot/alex/moreStuff/...

從測試看來,使用上面的命令似乎不會搜索上面提供的位置的“已刪除”文件。 P4 幫助頁面也不會給我太多關於如何做的信息。 第 4 頁 grep

想知道我該怎么做? 也許我錯過了什么或不明白..

使用環境:

  • Linux 操作系統,命令行界面;
  • 使用的Perforce版本:Perforce Visual Client/LINUX26X86_64/2013.4/760166

你試過-a選項嗎?

        The -a flag searches all revisions within the specified range. By
        default only the highest revision in the range is searched.

請記住,已刪除的文件只是在#head處具有已刪除修訂版的文件; 所有的舊修訂都還在那里! p4 grep默認不搜索它們的唯一原因是默認情況下它只在 head 修訂版上運行。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM