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의 이미지

다행입니다. :)

댓글 달기

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
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.