SVN
- svn checkout --username anonsvn https://dev.naver.com/svn/urlimport
- The password is 'anonsvn'
svn merge 옵션 FROM TOFROM TO 는 로컬 경로나 리모트 경로를 사용하게 됩니다.
svn merge ~/root/trunk ~/root/branches/release2. devel 에서 작업한 내용을 trunk 로 합치고 싶을때
svn merge ~/root/devel ~/root/trunk
svn merge ~/root/trunk
svn merge -c RRRR ~/root/trunk
$ which vimdiff
/usr/local/bin/vimdiff
$ mkdir bin
$ cd bin
$ vim svndiff_wrap.sh
#!/bin/sh
DIFF="/usr/local/bin/vimdiff"
LEFT=${6}
RIGHT=${7}
$DIFF $LEFT $RIGHT
$ chmod 700 svndiff_wrap.sh
$ vim ~/.subversion/config
# editor-cmd = editor (vi, emacs, notepad, etc.)
### Set diff-cmd to the absolute path of your 'diff' program.
### This will override the compile-time default, which is to use
### Subversion's internal diff implementation.
# diff-cmd = diff_program (diff, gdiff, etc.)
diff-cmd = /home/USER/bin/svndiff_wrap.sh
diff --exclude=.svn LEFT RIGHT
find SRC_DIR -name '.svn' -type d | tar -zcvf TARGET.tgz SRC_DIR --exclude-from=-
tar -zcvf TARGET.tgz --exclude=.svn SOURCE1 SOURCE2 SOURCE3ㄷㄷㄷ
import os
import pysvn
c = pysvn.Client()
for base, dirs, files in os.walk("."):
if ".svn" in dirs:
dirs.remove(".svn")
for fileName in files:
if fileName.lower() == "thumbs.db":
filePath = os.sep.join((base, fileName.encode("mbcs")))
print filePath
c.remove(filePath.decode("mbcs"))
import os
import pysvn
dirPaths = []
for base, dirs, files in os.walk("."):
if ".svn" in dirs:
dirs.remove(".svn")
for dir in dirs:
dirPaths.append(os.sep.join((base, dir)))
dirPaths.sort()
c = pysvn.Client()
for dirPath in dirPaths:
print "commit:", dirPath
c.checkin([dirPath], "commit %s" % (dirPath), recurse=False)
dev/
dev/bin/
dev/bin/res
dev/src/
test
test/res
live
live/pack
$ svn propedit svn:externals .
폴더1 svn+ssh://외부SVN 경로1
폴더2 svn+ssh://외부SVN 경로2