How to find untracked files in a Perforce tree? (analogue of svn status)

前端 未结 16 2122
独厮守ぢ
独厮守ぢ 2020-12-02 06:44

Anybody have a script or alias to find untracked (really: unadded) files in a Perforce tree?

EDIT: I updated the accepted answer on this one since it looks like P4V

16条回答
  •  长情又很酷
    2020-12-02 07:27

    I needed something that would work in either Linux, Mac or Windows. So I wrote a Python script for it. The basic idea is to iterate through files and execute p4 fstat on each. (of course ignoring dependencies and tmp folders)

    You can find it here: https://gist.github.com/givanse/8c69f55f8243733702cf7bcb0e9290a9

提交回复
热议问题