CVS2SVN 과정에서 질문이 있습니다.

jasonpa의 이미지

어쩌다보니 윈도우즈 환경에서 CVS 저장소로 되어있는 것을 Subversion 으로 컨버팅을 하고 있습니다.
여기저기 자료들을 모아보고 많은 시행착오를 거치면서 변환하는 중인데요, 이상하게도 cvs2svn.py 스크립트로 dump file 을 생성한뒤 subversion 으로 load 하고 나서 저장소에 있는 파일들을 체크아웃해보면 파일 내용이 없고 해당 파일의 경로 정보만 달랑 들어있습니다.

제가 처리한 과정은
[1] 기존 cvs 저장소내에 xxx 라는 프로젝트 가 있다고 가정하면
d:/cvsrepo/xxx

[2] 덤프 파일을 생성
cvs2svn.py --dump-only --use-cvs --encoding=mbcs --dumpfile d:/xxx.dump d:/cvsrepo/xxx

[3] subversion 저장소 생성
svnadmin create --fs-type=fsfs d:/svn

[4] subversion 저장소 하위에 프로젝트 생성
svn mkdir file:///d:/svn/xxx

[5] 덤프파일로 부터 subversion 저장소로 로드
svnadmin --parent-dir xxx load d:/svn < d:/xxx.dump -m "initialize"

[6] 체크아웃
svn co file:///d:/svn/xxx/trunk

이런식으로 해보면 위에서 말씀드린 것 처럼 파일내용에 경로만 보입니다.

덤프파일 생성시 오류로그 같은것도 안보이던데, 윈도우 환경에서의 문제인지... 고수님들의 조언 부탁드립니다.

익명 사용자의 이미지

< d:/xxx.dump -m "initialize"

이 부분에서 d:/xxx.dump는 파일 이름 같은데 어떻게 -m "initialize" 옵션이 붙을 수 있는 건가요?

익명 사용자의 이미지

SVN 관련 문서에는 어떻게 하라고 나와 있나요? ;)

ogiwgi의 이미지

cvs2svn이 내부적으로 5단계의 과정을 거쳐서 dump 파일을 생성한다라고 나와 있습니다.

아래의 명령어가 예제로 나와 있습니다.

cvs2svn - s /tmp/svnrepos /path/to/cvs/repository

책에선 5단계의 과정에 대한 설명외엔 cvs2svn을 이용해 간단하게 변환이 된다고만 나와있고 그외엔 특별히 언급된게 없습니다.

------------------------------------------------------------------------
'뭐든지 하는 사람'부터 시작해야 '뭐든지 할 수 있는' 사람이 된다.

jasonpa의 이미지

Anonymous wrote:
< d:/xxx.dump -m "initialize"

이 부분에서 d:/xxx.dump는 파일 이름 같은데 어떻게 -m "initialize" 옵션이 붙을 수 있는 건가요?

아 이건 제가 잘못 적었네요. 로드시에 -m 옵션이 붙지 않는게 정상입니다. 실제로 진행할때도 적진 않았습니다.
이곳에 옮기는 과정에서 잘못 적었네요.

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.