Skip to content

google code에서 local svn 저장소 이전 작업한 내용 정리 개발이야기

svnadmin load 명령어는 dump 파일을 지정한 저장소에 복원합니다. 이때 저장소 내용이 있는경우에는 revision을 append 해서 복원합니다. svnadmin load 명령어가 기존내용을 모두 overwrite 처리하는줄로 오해했었는데 아니었네요 ㅎㅎ

프로젝트에서 여러 저장소간 merge작업이 있을때 이 방법을 통해 처리하면 유용하지 싶습니다.


글고 그간 google code에 널부러져 있던 프로젝트들을 정리했습니다.

깊게 생각하지 않고 무턱대고 프로젝트 생성부터 하고 봤더니 시간이 지나고서 보니 정신이 하나도 없네요

이제 google code에는 세미나나 스터디용 프로젝트만 남겨두고 모두 삭제 해버렸슴다.  속이 쉬원하네요 ㅎㅎ


작업한 내용 간략히 정리하니 3단계로 압축 되네요

  1. google code 프로젝트를 local서버로 sync - svn 원격 저장소 다운 받기
  2. local서버로 sync한 프로젝트 dump
  3. local서버 main repository에 load


 1102  echo '#!/bin/sh' > $PWD/apress-beginning-grails/hooks/pre-revprop-change
1103  echo 'exit 0' >> $PWD/apress-beginning-grails/hooks/pre-revprop-change
1104  chmod +x $PWD/apress-beginning-grails/hooks/pre-revprop-change
1105  echo '#!/bin/sh' > $PWD/apress-beginning-grails/hooks/start-commit
1106  echo 'exit 0' >> $PWD/apress-beginning-grails/hooks/start-commit
1107  chmod +x $PWD/apress-beginning-grails/hooks/start-commit
1108  svnsync init file:///$PWD/apress-beginning-grails http://apress-beginning-grails.googlecode.com/svn
1109  svnsync sync file:///$PWD/apress-beginning-grails
1110  ll
1111  svnadmin create ncrash-book-training
1112  echo '#!/bin/sh' > $PWD/ncrash-book-training/hooks/pre-revprop-change
1113  echo 'exit 0' >> $PWD/ncrash-book-training/hooks/pre-revprop-change
1114  chmod +x $PWD/ncrash-book-training/hooks/pre-revprop-change
1115  echo '#!/bin/sh' > $PWD/ncrash-book-training/hooks/start-commit
1116  echo 'exit 0' >> $PWD/ncrash-book-training/hooks/start-commit
1117  chmod +x $PWD/ncrash-book-training/hooks/start-commit
1118  svnsync init file:///$PWD/ncrash-book-training http://ncrash-book-training.googlecode.com/svn
1119  svnsync sync file:///$PWD/ncrash-book-training
1120  ll
1121  svnadmin create ncrash-study
1122  echo '#!/bin/sh' > $PWD/ncrash-study/hooks/pre-revprop-change
1123  echo 'exit 0' >> $PWD/ncrash-study/hooks/pre-revprop-change
1124  chmod +x $PWD/ncrash-study/hooks/pre-revprop-change
1125  echo '#!/bin/sh' > $PWD/ncrash-study/hooks/start-commit
1126  echo 'exit 0' >> $PWD/ncrash-study/hooks/start-commit
1127  chmod +x $PWD/ncrash-study/hooks/start-commit
1128  svnsync init file:///$PWD/ncrash-study http://ncrash-study.googlecode.com/svn
1129  svnsync sync file:///$PWD/ncrash-study
google code 프로젝트 sync 하는 과정에 대한 history

 1195  svnadmin dump ./googlecode/ >> ~/googlecode.svn.dump
 1196  svnadmin load ./ncrash/ < ~/googlecode.svn.dump
 1197  ll
 1198  rm -rf googlecode/
 1199  rm -rf ncrash-study/
 1200  ll
 1201  ls -l
 1202  svnadmin dump ./apress-beginning-grails/ >> ~/apress.svn.dump
 1203  svnadmin load ./ncrash/ < ~/apress.svn.dump
 1204  ll
 1205  ll
 1206  ls -l
 1207  rm -rf apress-beginning-grails/
 1208  svnadmin dump ./ncrash-book-training/ >> ~/book.svn.dump
 1209  svnadmin load ./ncrash/ < ~/book.svn.dump
 1210  ll
 1211  ls
 1212  ls -l
 1213  rm -rf ncrash-book-training/


dump 뜨고 load 처리하는 과정 히스토리


마지막으로 모든 작업 후 history가 정상적으로 보여지는지 확인 샷


스크린샷 2010-08-04 오후 3.57.27.png 


참고한 링크 목록

Share
이 글과 관련된 글
  1. [2011/10/12] 백업과 복원을 손쉽게 - Drive SnapShot 1.40 by 벼리 (2)
  2. [2011/01/29] Desire HD, 루팅부터 오버클럭까지. by Lawliet (29405, 87) *158
  3. [2010/09/01] Oversize load safety by 도니짱의 안전보건 콘텐츠 (2301, 1)
  4. [2010/07/21] 안드로이드 스마트폰의 일정 초기화 하는 법 by 불량사전 (8956, 5) *6
  5. [2010/06/30] eclipse SVN 플러그인 설치 주소 by 날파리 (1919, 1)
Tag :

Leave Comments

T-NAVI