svn에서, image 파일이 깨집니다 -_- 수정하려면?

lacovnk의 이미지

아아아 이미지 파일이 깨지네요;

cvs2svn으로 작업했는데, image 파일들이 좀 깨졌네요. 중간에 줄이 가면서 밀리는 것도 있고, 아예 viewer에서 안열리는 것도 있네요.

1. svn에서 유달리 뭘 설정해줘야 할 것이 있나요? berkley db에서 깨지는 현상이 종종 있다고 들었는데, 그건 동시 commit 등이 발생할 경우인 줄 알았는데..

2. image 파일이 깨져서, 안 깨진 파일로 덮어씨우려고 하는데, up나 ci 둘다 안먹네요 -_- 어떻게 해야 할 까요?

pynoos의 이미지

2 번으로 시도할 경우 에러 메시지가 어떻게 되죠?

Linux/Unix 라면,

svn pl filename

으로 하셔서 svn:keywords 가 나오면 안되며,

svn pg svn:mime-type filename

으로 하셔서

application/octet-stream

위 값이 나오면 됩니다.

svn:keywords가 나오면 pd 명령으로 지워주세요

lacovnk의 이미지

svn pl *.gif 했더니

svn:keywords라고 되어있길래

1.
svn pd svn:keyword

2.
svn ps svn:mime-type application/octet-stream bla.gif

를 모두 해줘서, 지금은

Quote:
Properties on 'spacer.gif':
svn:mime-type
svn:eol-style

라고 나옵니다. eol-style을 그냥 두고 svn ci 했더니

Quote:
Sending images/b_submit.gif
Sending images/banner_spampoison.gif
Sending images/bn_tt.gif
Sending images/body_bg_b.gif
Sending images/body_bg_l.gif
Sending images/body_bg_r.gif
Sending images/body_bg_t.gif
Sending images/body_round_lb.gif
Sending images/body_round_lt.gif
Sending images/body_round_rb.gif
Sending images/body_round_rt.gif
Sending images/nav_bg.gif
Sending images/spacer.gif
svn: Commit succeeded, but other errors follow:
svn: Error bumping revisions post-commit (details follow):
svn: In directory '/home/lacovnk/workspace/svn/tt_coldgray/trunk/images'
svn: Error processing command 'committed' in '/home/lacovnk/workspace/svn/tt_coldgray/trunk/images'
svn: Error replacing text-base of 'bn_tt.gif'
svn: File '/home/lacovnk/workspace/svn/tt_coldgray/trunk/images/bn_tt.gif' has inconsistent newlines
svn: Inconsistent line ending style
svn: Your commit message was left in a temporary file:
svn: '/home/lacovnk/workspace/svn/tt_coldgray/trunk/svn-commit.tmp'

라 뜹니다;

당황하여 -_- eol-style을 제거하고자
svn pd svn:eol-style 했더니 (텍스트 파일에만 있는 것인 줄 알고.. binary인 경우 native인건가요?; )

Quote:
svn: Working copy '.' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

라고 하길래 svn cleanup 했더니

Quote:
svn: In directory '.'
svn: Error processing command 'committed' in '.'
svn: Error replacing text-base of 'bn_tt.gif'
svn: File 'bn_tt.gif' has inconsistent newlines
svn: Inconsistent line ending style

랍니다;;

으으.. 제가 뭘 잘못한걸까요? ㅎㅎ

lacovnk의 이미지

checkout 받고, image 모두 지우고, 다시 추가하는 방법을 택했습니다 ㅎ

http://twiki.org/cgi-bin/view/Codev/SubversionLineEndings

여기를 보면, cvs2svn에서 eol-style의 문제도 있다는데..

cvs2svn의 잘못이라고 생각하기로 했습니다 ㅎㅎ

add 다시 해줄 때에는 (bin)으로 뜨고,

Quote:

$ svn pl bn_tt.gif
Properties on 'bn_tt.gif':
svn:mime-type

로 잘 나옵니다 ㅎㅎ

pynoos의 이미지

다행입니다. :)