Perforce - 如何获取已本地修改的文件列表?

发布于 2024-12-04 06:32:58 字数 229 浏览 1 评论 0原文

我正在寻找一个 perforce 命令来获取已在本地修改且“未”签入存储库的文件列表。

我知道我“应该”获取待处理更改列表中的已修改文件列表,但在某些情况下我看不到该列表中的已修改文件。然后,在“手动”检查文件并进行比较时,我意识到了差异。

是否有任何命令可以检查给定文件夹中的所有文件并为我提供与存储库中状态不同的文件列表?

我尝试了“p4 同步”,但没有成功。

感谢您的关注。

I am looking for a perforce command to get the list of the files that have been modified locally and "not" checked-in to the repository.

I understand that I "should" get the list of modified files in Pending changelist, but there are scenarios when I don't get to see a modified file in that list. And then on "manually" checking out a file and doing a diff i realize the difference.

Is there any command that could check all the files in a given folder and provide me a list of files that are not same as there state in the repository?

I tried "p4 sync", but that did not work.

Thanks for your interest.

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

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

发布评论

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

评论(5

吻安 2024-12-11 06:32:58

尝试

p4 diff -f -sa

(有关更多详细信息,请参阅手册

Try

p4 diff -f -sa

(see manual for further details)

明月松间行 2024-12-11 06:32:58

我使用“p4 revert -n ./...”

,其中

-n

列出将要还原的文件,而不实际执行还原。

这可以让您在实际恢复文件之前确保恢复按照您的想法进行。

I use "p4 revert -n ./..."

where

-n

List the files that would be reverted without actually performing the revert.

This lets you make sure the revert does what you think it does before actually reverting the files.

海之角 2024-12-11 06:32:58

在 Perforce 的最新版本中,尝试“p4 reconcile -e”,

请参阅:http://www.perforce.com/perforce/r12.1/manuals/cmdref/reconcile.html

不过这确实需要时间(不是很快)。

In the recent versions of Perforce, try "p4 reconcile -e"

see: http://www.perforce.com/perforce/r12.1/manuals/cmdref/reconcile.html

It certainly takes its time though (not very fast).

不必在意 2024-12-11 06:32:58

我认为,修改的文件是在本地提交的(否则,p4打开./...将有助于查找)

如果文件已经提交到本地perforce并且仍然想知道哪些都被修改了..

  1. p4更改-m 5 ./ ...(应给出更改列表)
  2. p4Integrate -n ./... //server/code/base/... (这应列出要集成到主线的文件。

I think, the modified files are submitted locallay (Otherwise, p4 opened ./... will help to find)

If files are already submitted to local perforce and still want to know which all are modified..

  1. p4 changes -m 5 ./... (Should give changes lists)
  2. p4 integrate -n ./... //server/code/base/... (This should list the files to be integrated to mainline.
寒江雪… 2024-12-11 06:32:58

我是 Perforce 新手,但以下命令适用于这种情况
p4状态
这显示了不属于存储库但存在于仓库中的所有文件

I am new to Perforce, but below command works for this situation
p4 status
This shows all files that are not part of repository but present in depot

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