Detecting Perforce unopened modified files

前端 未结 5 1999
春和景丽
春和景丽 2021-01-30 17:54

I\'m trying to figure out a way to detect files that are not opened for editing but have nevertheless been modified locally. p4 fstat returns a value headModT

5条回答
  •  没有蜡笔的小新
    2021-01-30 18:17

    From: http://answers.perforce.com/articles/KB/3481/?q=disconnected&l=en_US&fs=Search&pn=1

    See step 2 specifically:


    2 . Next, open for "edit" any files that have changed:

    p4 diff -se //myclient/... | p4 -x - edit
    

    p4 diff -se returns the names of depot files whose corresponding client file differs in any way from the clients #have revision.

提交回复
热议问题