cvs 명령, Replace with Latest From HEAD 콘솔에서는 어떤 명령?
글쓴이: shamlock / 작성시간: 금, 2008/08/29 - 1:18오후
이클립스의 CVS관련 메뉴에보면 Replace with Latest From HEAD 라는 메뉴가 있습니다.
선택한 폴더나 파일의 변경사항을 다 무시하고 마지막버전으로 돌려주는 명령입니다.
터미널에 접속해서 cvs 코맨드로도 이 기능이 가능할까요?
지우고 다시 받는방법 말구요..
P.S:
제가 사용해본 최고의 CVS 클라이언트는 이클립스입니다
Forums:


man cvs 씀:CVS(1)
man cvs
CVS(1) CVS(1) NAME cvs - Concurrent Versions System SYNOPSIS cvs [ cvs_options ] cvs_command [ command_options ] [ command_args ] ... update options These standard options are available with update (see node ‘Common options' in the CVS manual, for a complete description of them): ... -C Overwrite locally modified files with clean copies from the reposi- tory (the modified file is saved in .#file.revision, however). ... AUTHORS Dick Grune Original author of the cvs shell script version posted to comp.sources.unix in the volume6 release of December, 1986. Credited with much of the cvs conflict resolution algorithms. Brian Berliner Coder and designer of the cvs program itself in April, 1989, based on the original work done by Dick. Jeff Polk Helped Brian with the design of the cvs module and vendor branch support and author of the checkin(1) shell script (the ancestor of cvs import). Larry Jones, Derek R. Price, and Mark D. Baushke Have helped maintain cvs for many years. And many others too numerous to mention here. SEE ALSO The most comprehensive manual for CVS is Version Management with CVS by Per Cederqvist et al. Depending on your system, you may be able to get it with the info CVS command or it may be available as cvs.pdf (Portable Document Format), cvs.ps (PostScript), cvs.texinfo (Texinfo source), or cvs.html. For CVS updates, more information on documentation, software related to CVS, development of CVS, and more, see: <a href="http://cvs.nongnu.org" rel="nofollow">http://cvs.nongnu.org</a>tag나 revision 혹은 date 지정 옵션을 같이 사용하면 특정한 놈을 가져올 수도 있습니다.
OTL
아.... 여지껏 콘솔에서는 지우고 다시 썼었는데..
아.... 여지껏 콘솔에서는 지우고 다시 썼었는데..
감사합니다.
@.@
흠... 이클립스의 Replace With Latest Version 과는 다르네요
안녕하세요. update -A -C 옵션이면 되는 건줄알았는데
잘 되는게 아니었네요
흠... 이클립스의 Replace With Latest Version 과는 다르네요
답변해주신 말씀을 듣고 이런 식으로 사용하고 있습니다.
cvs update -A -C -r HEAD
cvs update -A -C -r MY_BRANCH
## Branch에서 HEAD로, 또는 그반대로 전환하면서 cvs 업데이트 받는 식으로 작업중입니다. 테스트내용 : 로컬에서 수정한 내용있는 상태에서 다른 브랜치로 받기 원하는 내용 : 로컬에서 수정한 내용 무시하고, UPDATE받기 테스트 결과 : 충돌이 발생하고 로컬파일으로 요런식으로 바꾼뒤 ".#myfile.c.1.2.1.1" 새로운 버전으로 받습니다. 테스트내용 : Branch에서 새로운 파일 추가한 상태에서 다른 브랜치로 받기 원하는 내용 : 로컬에서 추가한 파일 지우고 , UPDATE받기 테스트 결과 : 추가한 파일이 안지워집니다.좀 허접한 질문이라 죄송합니다만....
혹시 다른 예상치 못한 상황이 있을까 염려되서.. 지금은 다 지우고 다시 받는 방법을 쓰고 있습니다.
이클립스의 Replace With Latest Version 처럼 완전히 깔끔하게 처리되는 방법은 없을까요?
감사합니다.
참고로 솔라리스8이고, 아래 명령을 실행해본결과입니다.
$ cvs update [-I ign] [-W spec] [files...] -A Reset any sticky tags/date/kopts. -P Prune empty directories. -C Overwrite locally modified files with clean repository copies. -d Build directories, like checkout does. -f Force a head revision match if tag/date not found. -l Local directory only, no recursion. -R Process directories recursively. -p Send updates to standard output (avoids stickiness). -k kopt Use RCS kopt -k option on checkout. (is sticky) -r rev Update using specified revision/tag (is sticky). -D date Set date to update from (is sticky). -j rev Merge in changes made between current revision and rev. -I ign More files to ignore (! to reset). -W spec Wrappers specification line. (Specify the --help global option for a list of other help options)@.@
댓글 달기