[Usage] CVS - Current Versions System

 회사에서 현재 CVS와 SVN으로 소스관리를 하고 있다.
처음 회사에 들어와서 환경 셋업을 할 때 WinCVS(http://www.wincvs.org)를 인스톨하여 사용을 했고, 지금까지 그래왔다.
하지만 앞으론 나도 shell에서 command를 이용하여 소스관리하는 것에 익숙해지고 싶다.
(왜?? 이런것에 익숙해지면 OS종류에 따라 똑같은 프로그램을 다시 설치하고 또 거기에 맞추는 번거로운 일은 없을 테니까...)

bash에서 'cvs --help'를 해 보았다.
$ cvs --help
Usage: cvs [cvs-options] command [command-options-and-arguments]
  where cvs-options are -q, -n, etc.
    (specify --help-options for a list of options)
  where command is add, admin, etc.
    (specify --help-commands for a list of commands
     or --help-synonyms for a list of command synonyms)
  where command-options-and-arguments depend on the specific command
    (specify -H followed by a command name for command-specific help)
  Specify --help to receive this message

The Concurrent Versions System (CVS) is a tool for version control.
For CVS updates and additional information, see
    the CVS home page at http://cvs.nongnu.org/

음.. usage에 있는 cvs-options를 보고 싶으면 --help-options를 하랜다.
command를 보고 싶으면 --help-commands를, command와 동의어를 보고 싶으면 --help-synonyms를 하라고 하네.
또 command-options-and-arguments를 보고 싶으면 -H 뒤에 커맨드 이름을 적어넣으랜다.

해보자.

'cvs --help-options'다.
$ cvs --help-options
CVS global options (specified before the command name) are:
    -H           Displays usage information for command.
    -Q           Cause CVS to be really quiet.
    -q           Cause CVS to be somewhat quiet.
    -r           Make checked-out files read-only.
    -w           Make checked-out files read-write (default).
    -n           Do not execute anything that will change the disk.
    -t           Show trace of program execution -- try with -n.
    -v           CVS version and copyright.
    -T tmpdir    Use 'tmpdir' for temporary files.
    -e editor    Use 'editor' for editing log information.
    -d CVS_root  Overrides $CVSROOT as the root of the CVS tree.
    -f           Do not use the ~/.cvsrc file.
    -z #         Use compression level '#' for net traffic.
    -a           Authenticate all net traffic.
    -s VAR=VAL   Set CVS user variable.
(Specify the --help option for a list of other help options)

다른건 아직 써보질 않아서 모르겠고, 아마 제일 많이 사용되는 옵션이 '-d'가 아닐까...
환경변수로 '$CVSROOT'가 등록이 되어 있다면 그것이 사용되겠지만,
커맨드를 입력할 때 다른 CVSROOT로 접근을 하려 한다면 이 옵션을 이용하여 그 뒤에 이어서 CVSROOT를 명기해줘야 한다.

이번엔 'cvs --help-commands'다.
$ cvs --help-commands
CVS commands are:
        add          Add a new file/directory to the repository
        admin        Administration front end for rcs
        annotate     Show last revision where each line was modified
        checkout     Checkout sources for editing
        commit       Check files into the repository
        diff         Show differences between revisions
        edit         Get ready to edit a watched file
        editors      See who is editing a watched file
        export       Export sources from CVS, similar to checkout
        history      Show repository access history
        import       Import sources into CVS, using vendor branches
        init         Create a CVS repository if it doesn't exist
        log          Print out history information for files
        login        Prompt for password for authenticating server
        logout       Removes entry in .cvspass for remote repository
        pserver      Password server mode
        rannotate    Show last revision where each line of module was modified
        rdiff        Create 'patch' format diffs between releases
        release      Indicate that a Module is no longer in use
        remove       Remove an entry from the repository
        rlog         Print out history information for a module
        rtag         Add a symbolic tag to a module
        server       Server mode
        status       Display status information on checked out files
        tag          Add a symbolic tag to checked out version of files
        unedit       Undo an edit command
        update       Bring work tree in sync with repository
        version      Show current CVS version(s)
        watch        Set watches
        watchers     See who is watching a file
(Specify the --help option for a list of other help options)


이번엔 'cvs --help-synonyms'
$ cvs --help-synonyms
CVS command synonyms are:
        add          ad new
        admin        adm rcs
        annotate     ann
        checkout     co get
        commit       ci com
        diff         di dif
        export       exp ex
        history      hi his
        import       im imp
        log          lo
        login        logon lgn
        rannotate    rann ra
        rdiff        patch pa
        release      re rel
        remove       rm delete
        rlog         rl
        rtag         rt rfreeze
        status       st stat
        tag          ta freeze
        update       up upd
        version      ve ver
(Specify the --help option for a list of other help options)


이어서, chechout에 대한 option들.
$ cvs -H checkout
Usage:
  cvs checkout [-ANPRcflnps] [-r rev] [-D date] [-d dir]
    [-j rev1] [-j rev2] [-k kopt] modules...
        -A      Reset any sticky tags/date/kopts.
        -N      Don't shorten module paths if -d specified.
        -P      Prune empty directories.
        -R      Process directories recursively.
        -c      "cat" the module database.
        -f      Force a head revision match if tag/date not found.
        -l      Local directory only, not recursive
        -n      Do not run module program (if any).
        -p      Check out files to standard output (avoids stickiness).
        -s      Like -c, but include module status.
        -r rev  Check out revision or tag. (implies -P) (is sticky)
        -D date Check out revisions as of date. (implies -P) (is sticky)
        -d dir  Check out into dir instead of module name.
        -k kopt Use RCS kopt -k option on checkout. (is sticky)
        -j rev  Merge in changes made between current revision and rev.
(Specify the --help global option for a list of other help options)


대충 이런 식이다. 음..그러나 여전히 잘 모르겠다..ㅡㅡ;;

by 케이아스 | 2009/03/05 16:52 | Cygwin | 트랙백

트랙백 주소 : http://chaotic21c.egloos.com/tb/8931356
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]
※ 로그인 사용자만 덧글을 남길 수 있습니다.

◀ 이전 페이지 다음 페이지 ▶