본문 바로가기

Development

[CVS] CVS 들어가기

  • CVS 설치되었는지 확인 하기

kido>cvs -v
  • CVS 리파지토리 디렉토리 만들기

useradd cvs
chmod 755 /home/cvs
  • /etc/xinetd.d/cvspserver 설정하기

service cvspserver
{
disable = no
flags = REUSE
socket_type = stream
wait = no
user = root
server = /usr/bin/cvs
server_args = -f --allow-root=/home/cvs pserver
log_on_failure += USERID
}
  • 서비스 재시작

/etc/rc.d/init.d/xinetd restart
  • CVS Repository 초기화 설정

export CVSROOT=/home/cvs
cvs init
  • cvs 사용자 등록

- 이미 사용자가 존재하는 경우
usermod -g cvs userid

- 새로운 사용자 생성하는 경우
useradd username -g cvs
  • 클라이언트 사용자 설정

export CVSROOT=:pserver:userid@서버주소:/home/cvs
echo $CVSROOT
  • 로그인

cvs login
Logging in to :pserver:userid@서버주소:/home/cvs
CVS password:
  • CVS 에 자료 올리기

kido>cvs -d /CVS/repo import -m "메시지" sesame [sesame] [initial]

첫번째 sesame는 /CVS/repo 저장소 안에 저장될 이름을 나타낸다. 이름 결정을 잘 하는것이 좋다.
두번째 sesame과 initial은 꼬리표이다. 그냥 달아두도록 하자.
  • CVS에서 자료 가져오기

kido>cvs -d /CVS/repo co sesame

co : CheckOut의 의미
sesame : 가져올 저장소의 자료이름
  • 변경된 파일 정보 알아보기

cvs status Color.txt

===================================================================
File: Color.txt Status: Locally Modified

Working revision: 1.1.1.1 Wed Nov 14 07:39:29 2007
Repository revision: 1.1.1.1 /CVS/repo/sesame/Color.txt,v
Sticky Tag: (none)
Sticky Date: (none)
Sticky Options: (none)
  • 변경된 사항 알아보기

cvs diff Color.txt

Index: Color.txt
===================================================================
RCS file: /CVS/repo/sesame/Color.txt,v
retrieving revision 1.1.1.1
diff -r1.1.1.1 Color.txt
6a7,10
> blue
> purple
> gray
> white

cvs diff --side-by-side Color.txt

Index: Color.txt
===================================================================
RCS file: /CVS/repo/sesame/Color.txt,v
retrieving revision 1.1.1.1
diff --side-by-side -r1.1.1.1 Color.txt
black black
brown brown
red red
orange orange
yellow yellow
green green
> blue
> purple
> gray
> white
  • 변경사항 반영하기

cvs commit -m "새로운 색상 추가"
  • CVS 로그 확인하기

cvs log Color.txt

RCS file: /CVS/repo/sesame/Color.txt,v
Working file: Color.txt
head: 1.2
branch:
locks: strict
access list:
symbolic names:
initial: 1.1.1.1
sesame: 1.1.1
keyword substitution: kv
total revisions: 3; selected revisions: 3
description:
----------------------------
revision 1.2
date: 2007/11/14 08:29:00; author: eunkong; state: Exp; lines: +4 -0
새로운 색상 추가
----------------------------
revision 1.1
date: 2007/11/14 07:39:29; author: eunkong; state: Exp;
branches: 1.1.1;
Initial revision
----------------------------
revision 1.1.1.1
date: 2007/11/14 07:39:29; author: eunkong; state: Exp; lines: +0 -0

=============================================================================

'Development' 카테고리의 다른 글

[Image] 이미지 저장 (RAW, JPEG, TIFF)  (0) 2009.01.07
[RAID] RAID 구성 DISK  (0) 2009.01.07
[ActiveX] Web 처리시 문제 발생한 경우  (0) 2009.01.06
[Visual Assist] 단축키  (0) 2009.01.06
[MFC] 구조도  (0) 2008.12.16