Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果给定仓库路径,是否有任何命令可以返回工作空间路径?
对于同步文件,p4 have是在给定仓库路径的情况下找出本地路径的规范/最简单的方法。 p4 fstat也将工作。
p4 have
p4 fstat
对于尚未同步的文件,p4 have将不会返回任何内容,但p4 where会显示任何给定路径映射到的位置。
p4 where
对于文件已同步但此后映射已更改的情况,p4 have将向p4 where您显示两个不同的内容(have显示您当前拥有文件的路径,where显示下次同步时它将去哪里)。
have
where