2014-07-19 6 views
1

rm -rf를 사용하여 위치에서 파일을 로컬로 제거했습니다. 내가 p4 sync 파일 이름을 시도 할 때 파일 이름을 가져 오지 못하고 파일이 업데이트되었다는 메시지를받는 중입니다. 나는 파일을 얻기 위해 CVS에서 비슷한 명령을 사용했다. cvs는 파일 이름을 업데이트했다.Perforce에서 파일 가져 오기

답변

2

다음을 참조하십시오 : http://www.perforce.com/perforce/r12.1/manuals/cmdref/sync.html.

관련 부분은 다음과 같습니다.

Syntax 
    p4 [g-opts] sync [-f] [-L] [-k] [-n] [-q] [-m max] [file[revRange]...] 
    p4 [g-opts] sync [-L] [-n] [-q] [-s] [-m max] [file[revRange]...] 
    p4 [g-opts] sync [-L] [-n] [-p] [-q] [-m max] [file[revRange]...] 

원하는 플래그는 다음과 같습니다.

-f 
    Force the sync. Perforce performs the sync even if the client 
    workspace already has the file at the specified revision. If 
    the file is writable, it is overwritten. 

    This flag does not affect open files, but it does override the 
    noclobber client option. 
+0

답장을 보내 주셔서 감사합니다 ... – user765443