레이블이 subversion인 게시물을 표시합니다. 모든 게시물 표시
레이블이 subversion인 게시물을 표시합니다. 모든 게시물 표시

2010-05-13

subversion 사용시 파일이름 인코딩

svn: can't convert string from native encoding to 'utf-8'
이런 에러가 떴다. 커맨드라인이나 툴을 쓸 때에는 이런 현상이 없다. 이번 경우는 아래와 같이 post-commit 훅에서 특정 디렉토리로 svn up을 실행하려 했는데 발생한 것이다.
# copy html design files to under www.
svn up /var/www/public/me_design
이것은 환경설정에 export LANG=en_US.UTF-8 만 해주어도 해결된다. runsvnupdate.sh를 만들고 아래 내용을 넣는다.
export LANG=en_US.UTF-8
svn up /var/www/public/me_design
post-commit 훅에서는 이 스크립트를 실행하자.

2009-09-24

TortoiseSvn 과 Trac 통합

TortoiseSvn에서 커밋시에 Trac의 티켓번호를 입력할 수 있도록 하려고 했더니 http://tracexplorer.devjavu.com/이 필요하고, 또 Trac에도
  • XML-RPC plugin and you need XML_RPC-permissions.
  • When you use AccountManagerPlugin together with form based authentication, you must also install the HttpAuthPlugin
해야 한다는... 에이 귀찮다.

Subversion의 mailer.py 스크립트에서 Gmail SMTP 사용하기

기본적으로 아래 링크를 참조
http://www.pyrasis.com/blog/entry/SubversionMailerPyScriptForGmailSMTP

sudo apt-get install subversion-tools

mailer.conf 에서는
# mail_command = /usr/sbin/sendmail
smtp_hostname = smtp.gmail.com:587
smtp_username = someuser@your.domain
smtp_password = yourpassword

from_addr = someuser@your.domain
to_addr = your@mailing.list
reply_to = your@mailing.list

from_addr세팅을 안했더니 안간다. 이것 때매 시간 좀 썼다. 그리고 위에서 mail_command 는 코멘트 처리 했다. 이게 있으면 SMTP로 직접 쏘는게 아니라 sendmail을 이용해서 보낸다는거다.

mailer.py 에서는 class SMTPOutput 의 finish() 에서

if self.cfg.is_set('general.smtp_username'):
  server.ehlo()
  server.starttls()
  server.ehlo()
  server.login(self.cfg.general.smtp_username,
                   self.cfg.general.smtp_password)

와 같이 수정한다.