'프로그램 사용/Version Control'에 해당되는 글 130건

  1. 2017.12.10 svn externals commit 제외하기
  2. 2017.11.03 svn externals 제약사항 (파일은 안됨)
  3. 2017.09.16 tortoiseSVN 엑셀 비교
  4. 2017.07.03 sorucetree / git client
  5. 2017.04.25 git 공부.. 2
  6. 2017.04.25 git-svn 관련글
  7. 2017.02.03 svn list 예제
  8. 2016.12.30 svn hook encv
  9. 2016.12.30 svn commit email - python / synology
  10. 2016.12.30 svn diff 결과물 컬러로 보기

음.. 클라이언트에 의존적인 문제면.. 꼬부기로는 어쩔수가 없다는 건가?

Show externals from different repositories는 무조건 체크인데..

동일 저장소라 안꺼지는건가?


[링크 : https://stackoverflow.com/questions/13933305/svn-ignore-externals-when-committing]


svn:ignore 설정하면 될 줄 알았으나 똑같네.. 방법 없나?

[링크 : https://mytory.net/archives/1015]

Posted by 구차니

실험을 해보니..

동일 서버의 다른 저장소에서 끌어올 수 있으나

엑셀 파일을 직접적으로 끌어갈 순 없고

그 파일이 존재하는 상위 폴더를 끌어갈 수는 있다.



[링크 : https://stackoverflow.com/questions/12885661/single-image-file-to-be-svn-externals]

[링크 : https://tortoisesvn.net/docs/nightly/TortoiseSVN_en/tsvn-dug-externals.html]


2014/12/29 - [프로그램 사용/CVS & SVN & GIT & Mercurial] - svn externals 를 이용한 외부 프로젝트 자동으로 불러오기(?)


'프로그램 사용 > Version Control' 카테고리의 다른 글

svn 로그 수정 pre-revprop-change  (0) 2017.12.20
svn externals commit 제외하기  (0) 2017.12.10
tortoiseSVN 엑셀 비교  (0) 2017.09.16
sorucetree / git client  (0) 2017.07.03
git 공부..  (2) 2017.04.25
Posted by 구차니

파일을 오픈해서는 안될거 같고

아무튼.. 워드2007에서는 비교 기능이 있으나 엑셀2007에서는 비교 기능이 없어서

별도의 스크립트를 통해 비교해주도록 tortoiseSVN에서 구현 한 듯.

[링크 : https://support.office.com/en-us/article/Compare-document-differences-using-the-legal-blackline-option-dbfc7351-4022-43a2-a0c4-54d1898702a0?ui=en-US&rs=en-US&ad=US]



'프로그램 사용 > Version Control' 카테고리의 다른 글

svn externals commit 제외하기  (0) 2017.12.10
svn externals 제약사항 (파일은 안됨)  (0) 2017.11.03
sorucetree / git client  (0) 2017.07.03
git 공부..  (2) 2017.04.25
git-svn 관련글  (0) 2017.04.25
Posted by 구차니

거북이는 느려서 안썼는데

얘는 빠르다는 제보가 있으니 한번 테스트 삼아 써봐야지


[링크 : https://www.sourcetreeapp.com/]

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn externals 제약사항 (파일은 안됨)  (0) 2017.11.03
tortoiseSVN 엑셀 비교  (0) 2017.09.16
git 공부..  (2) 2017.04.25
git-svn 관련글  (0) 2017.04.25
svn list 예제  (0) 2017.02.03
Posted by 구차니

후배를 갈아먹자 -_-


[링크 : https://git-scm.com/book/en/v2]

[링크 : https://git-scm.com/book/ko/v2]


git fetch(서버에서 받아오기)

git merge(병합)

>> git pull


git checkout (브랜치 선택)


git commit 로컬 저장소 저장

git push 원격 저장소 저장


git clone


git init (로컬 저장소 생성)

git remote add repo (로컬 저장소와 원격저장소 연결)

git pull (원격 저장소의 정보를 내려받음)

>> git clone repo (로컬 저장소와 원격저장소 동일) 

[링크 : https://www.slideshare.net/einsub/svn-git-17386752]

'프로그램 사용 > Version Control' 카테고리의 다른 글

tortoiseSVN 엑셀 비교  (0) 2017.09.16
sorucetree / git client  (0) 2017.07.03
git-svn 관련글  (0) 2017.04.25
svn list 예제  (0) 2017.02.03
svn hook encv  (0) 2016.12.30
Posted by 구차니

dcommit이라는걸 이제야 발견해서 검색..

음... 나중에 한번 써먹어볼까?


$ git svn dcommit

[링크 : http://www.allofsoftware.net/2011/08/blog-post.html]

[링크 : https://git-scm.com/book/ko/v1/Git으로-이전하기-Git과-Subversion]


2011/12/23 - [프로그램 사용/CVS & SVN & GIT & Mercurial] - git-svn

'프로그램 사용 > Version Control' 카테고리의 다른 글

sorucetree / git client  (0) 2017.07.03
git 공부..  (2) 2017.04.25
svn list 예제  (0) 2017.02.03
svn hook encv  (0) 2016.12.30
svn commit email - python / synology  (0) 2016.12.30
Posted by 구차니

역시 결론은.. 꺼부기가 최고야 -_-!

$ svn list file:///home/pi/repo@2 --verbose 


$ svn help list

list (ls): List directory entries in the repository.

usage: list [TARGET[@REV]...]


  List each TARGET file and the contents of each TARGET directory as

  they exist in the repository.  If TARGET is a working copy path, the

  corresponding repository URL will be used. If specified, REV determines

  in which revision the target is first looked up.


  The default TARGET is '.', meaning the repository URL of the current

  working directory.


  With --verbose, the following fields will be shown for each item:


    Revision number of the last commit

    Author of the last commit

    If locked, the letter 'O'.  (Use 'svn info URL' to see details)

    Size (in bytes)

    Date and time of the last commit


Valid options:

  -r [--revision] ARG      : ARG (some commands also take ARG1:ARG2 range)

                             A revision argument can be one of:

                                NUMBER       revision number

                                '{' DATE '}' revision at start of the date

                                'HEAD'       latest in repository

                                'BASE'       base rev of item's working copy

                                'COMMITTED'  last commit at or before BASE

                                'PREV'       revision just before COMMITTED

  -v [--verbose]           : print extra information

  -R [--recursive]         : descend recursively, same as --depth=infinity

  --depth ARG              : limit operation by depth ARG ('empty', 'files',

                             'immediates', or 'infinity')

  --incremental            : give output suitable for concatenation

  --xml                    : output in XML

  --include-externals      : include externals definitions


Global options:

  --username ARG           : specify a username ARG

  --password ARG           : specify a password ARG

  --no-auth-cache          : do not cache authentication tokens

  --non-interactive        : do no interactive prompting (default is to prompt

                             only if standard input is a terminal device)

  --force-interactive      : do interactive prompting even if standard input

                             is not a terminal device

  --trust-server-cert      : accept SSL server certificates from unknown

                             certificate authorities without prompting (but only

                             with '--non-interactive')

  --config-dir ARG         : read user configuration files from directory ARG

  --config-option ARG      : set user configuration option in the format:

                                 FILE:SECTION:OPTION=[VALUE]

                             For example:

                                 servers:global:http-library=serf 


[링크 : http://svnbook.red-bean.com/en/1.7/svn.tour.history.html]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git 공부..  (2) 2017.04.25
git-svn 관련글  (0) 2017.04.25
svn hook encv  (0) 2016.12.30
svn commit email - python / synology  (0) 2016.12.30
svn diff 결과물 컬러로 보기  (0) 2016.12.30
Posted by 구차니

으으 말일까지 나와서 테스트 해보네 ㅠㅠ

LC_ALL 만 설정하고 LC_ALL=""로 빼고 테스트 하니 한글이 깨지는 현상 발생

그래서 테스트 해보니 되는 듯



아무튼 결론

synology nas에서

svn 1.9.4 인데

hook-env 로는 설정이 안되고

post-commit 내에서

로 로케일과 언어를 설정해주니 문제없이 해결 -_-

export LC_ALL=en_US.utf8

export LANG=en_US.utf8



[링크 : https://www.lesstif.com/pages/viewpage.action?pageId=18220003]

[링크 : http://svnbook.red-bean.com/vi/1.8/svn.reposadmin.create.html]

[링크 : http://askubuntu.com/questions/795455/python-default-locale-is-not-working]

'프로그램 사용 > Version Control' 카테고리의 다른 글

git-svn 관련글  (0) 2017.04.25
svn list 예제  (0) 2017.02.03
svn commit email - python / synology  (0) 2016.12.30
svn diff 결과물 컬러로 보기  (0) 2016.12.30
svn commit시 email 알림  (0) 2016.12.29
Posted by 구차니

svn에서 hook을 통해 commit-post를 실행하면 희한하게 한글이 깨지네..

파이프쪽 로케일이 문제인가..


$ cat mailer.py

#!/usr/bin/python

# -*- coding:utf-8 -*-


import smtplib

import sys

import os

from email.mime.multipart import MIMEMultipart

from email.MIMEText import MIMEText

from subprocess import Popen, PIPE


smtp_hostname="smtp.mailserver.com:port"

smtp_username="mailer@mailserver.com"

smtp_password="password"

toaddrs  = ['user1@mailserver.com','user2@mailserver.com','user2@mailserver.com']

project_name = os.path.basename(sys.argv[1])

subject = "["+project_name+"]"+" svn repository update required"

content = project_name + "\n" + "rev : " + sys.argv[2]+ "\n"


cmd_1 = ['svnlook','changed','-r',sys.argv[2],sys.argv[1]]

proc = Popen(cmd_1, stdout=PIPE)

difflist = proc.stdout.read()


cmd_2 = ['svnlook','info','-r',sys.argv[2],sys.argv[1]]

proc = Popen(cmd_2, stdout=PIPE)

svninfo = proc.stdout.read()


content = "[" + project_name + "]\n" + "rev : " + sys.argv[2]+ "\n" + difflist +"\n" + svninfo


msg = MIMEMultipart()

msg['From'] = smtp_username

msg['To'] = ", ".join(toaddrs)

msg['Subject'] = subject

msg.attach(MIMEText(content,_charset='utf-8'))


print msg.as_string()


server = smtplib.SMTP_SSL(smtp_hostname)

server.login(smtp_username,smtp_password)

server.sendmail(smtp_username, toaddrs, msg.as_string())

server.quit()



[링크 : http://stackoverflow.com/questions/10147455/how-to-send-an-email-with-gmail-as-provider-using-python]

[링크 : http://stackoverflow.com/.../python-subject-not-shown-when-sending-email-using-smtplib-module]

[링크 : http://blog.saltfactory.net/python/send-mail-via-smtp-and-python.html]


[링크 : http://ngee.tistory.com/159]

[링크 : http://www.janosgyerik.com/setup-and-test-svn-post-commit-hook-to-send-commit-log/]


[링크 : http://stackoverflow.com/questions/3925096/how-to-get-only-the-last-part-of-a-path-in-python]

[링크 : http://stackoverflow.com/questions/8729071/is-there-any-way-to-add-multiple-receivers-in-python-smtplib]


[링크 : https://docs.python.org/2/library/email-examples.html]


[링크 : http://stackoverflow.com/questions/4537259/python-how-to-pipe-the-output-using-popen]


msg.attach(MIMEText(content,'plain',_charset="utf-8"))

[링크 : http://stackoverflow.com/questions/882712/sending-html-email-using-python]

[링크 : http://blog.saltfactory.net/python/send-mail-via-smtp-and-python.html]

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn list 예제  (0) 2017.02.03
svn hook encv  (0) 2016.12.30
svn diff 결과물 컬러로 보기  (0) 2016.12.30
svn commit시 email 알림  (0) 2016.12.29
svn console에서 엔터 입력하기  (0) 2016.11.08
Posted by 구차니

리눅스에서 하다 보니 귀찮은게 하나둘씩 보이네 ㅋㅋ


$ sudo apt-get install colordiff

$ vi ~/.subversion/config

[helpers]

diff-cmd = colordiff 


[링크 : https://gist.github.com/westonruter/846524]

'프로그램 사용 > Version Control' 카테고리의 다른 글

svn hook encv  (0) 2016.12.30
svn commit email - python / synology  (0) 2016.12.30
svn commit시 email 알림  (0) 2016.12.29
svn console에서 엔터 입력하기  (0) 2016.11.08
svn add를 취소하기  (0) 2016.11.04
Posted by 구차니