'Subversion'에 해당되는 글 3건

윈도우용 서브버전 클라이언트

 

여기서 다운 받으삼.

 

http://tortoisesvn.net/

 

'linux' 카테고리의 다른 글

[network] 우분투에서 네트웍 설정하는법  (0) 2011.09.21
MAC 변경하는 법  (0) 2011.09.21
windows hosts 파일 위치  (0) 2011.09.21
서브버전 사용법  (0) 2011.09.21
삼바 마운트 하는법  (0) 2011.09.21
블로그 이미지

김유석0

,

서브버전 사용법

linux 2011. 9. 21. 11:16

서브버전 설치하는건 알아서 하시고.

 

1. 프로젝트 생성

  svnadmin create --fs-type fsfs project

 

2. 디렉토리 생성

  svn mkdir svn://svn/project/trunk

  svn mkdir svn://svn/project/branches

  svn mkdir svn://svn/project/tag

 

3. import

  svn import project svn://svn/project/trunk

 

4. check out

  svn co svn://svn/project/trunk ./project

 

5. update

  svn up

 

6. dump

  svnadmin dump [svn directory] > backup.dump

  svnadmin dump -r 10 [svn directory] > backup.dump

  svnadmin dump -r 10:20 [svn directory] > backup.dump


#!/bin/sh

cd /home/svn

for list in $(ls)
do
    echo $list
    svnadmin dump $list > ../svn_backup/$list.dump
done

7. restore

  svnadmin create tset

  svnadmin load test --fource-uuid < test.dump


 #!/bin/sh

for list in $(ls *.dump)
do
    TARGET=`echo $list|cut -f1 -d.`
    echo "RESTORE $TARGET"
    svnadmin create /home/svn/$TARGET
    svnadmin load /home/svn/$TARGET --force-uuid < $list
done


8. revision 번호만 따오는 법

 TARGET_RELEASE:=-r$(shell LC_ALL=C LANG=C svn info | awk '/Revision/ { print $$2 }')

 

 

블로그 이미지

김유석0

,

subversion

linux 2011. 1. 4. 19:49
- 서브버전 설치
  sudo aptitude install subversion

- init script 설정
  /etc/init.d/svnserve 생성

svnserve


init script 생성후, 링크 걸어줌.

  sudo ln -s /etc/init.d/svnserve ./S99svnserve


- 에디터설정

  .bashrc 에 아래 라인 추가

  export SVN_EDITOR=vim


- 서비스 시작
  svnserve -d -r /home/svn 혹은, sudo /etc/init.d/svnserve restart

- 저장소 생성
  svnadmin create vlc_player --fs-type fsfs

- 암호 설정
  vi /home/svn/vlc_player/conf/passwd

    [user]
    poplinux = !poplinux

- 설정
  vi /home/svn/vlc_player/svnserve.conf
 
  uncomment below line
    auth-access = write   

   uncomment below line
    password-db = passwd   



- 저장소 디렉토리 생성
  svn mkdir svn://svn/vlc_player/trunk  
  svn mkdir svn://svn/vlc_player/branches
  svn mkdir svn://svn/vlc_player/tag

  위와 같이 저장소 디렉토리 생성하면, 아래와 같이 'yes', 'no' 를 선택하라는 메시지가 뜨는데, 아무리 해도 입력이 안되는 경우가 있다. 


인증 영역(realm): <svn://xxx.xxx.xxx.xxx:3690> xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx
'xxxxx'의 암호: 
-----------------------------------------------------------------------
ATTENTION!  Your password for authentication realm:
   <svn://xxx.xxx.xxx.xxx:3690> xxxxxxxx-xxxx-xxxx-xxxxxxxxxxxxxxxxx
can only be stored to disk unencrypted!  You are advised to configure
your system so that Subversion can store passwords encrypted, if
possible.  See the documentation for details.
You can avoid future appearances of this warning by setting the value
of the 'store-plaintext-passwords' option to either 'yes' or 'no' in
'/home/xxxxx/.subversion/servers'.
-----------------------------------------------------------------------

Store password unencrypted (yes/no)? 

 이럴때는 아래와 같이 설정 파일을 수정하면 된다. 

  ./subversion/servers 파일에서

  [global]

  store-passwords = yes 

  store-plaintext-passwords = yes 



- 최초 데이터 올리기
  svn import [data] svn://svn/vlc_player/trunk


- 바이너리 파일도 등록하기

  --no-ignore 옵션 사용하면 됨. 


- svn 정보 없이 데이터 내려 받기
  svn export svn://svn/vlc_player/trunk ./test






'linux' 카테고리의 다른 글

X window programming site  (0) 2011.01.10
VLC player  (0) 2011.01.04
vplay  (0) 2010.10.08
오디오 코덱 드라이버 개발할 때 업무 순서  (0) 2010.10.08
WM8731 driver  (0) 2010.10.08
블로그 이미지

김유석0

,