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

  1. 2011.01.08 SVN 저장소 합치기 - merging SVN repositories
  2. 2010.11.22 svn export 2가지 방법 2
  3. 2010.11.18 svn export 와 checkout의 차이점
  4. 2010.11.18 svn blame 4
  5. 2010.11.11 apache2 리눅스 계정으로 인증하기(PAM)
  6. 2010.11.03 Apache + SVN on Ubuntu 10.04
  7. 2010.09.09 visualSVN
  8. 2010.04.30 TortoiseSVN tag/branch = copy 2
  9. 2010.04.23 cvs2svn 사용방법 2
  10. 2010.04.23 svn / svnadmin 도움말
UFO:AI 번역을 하다보니 과거버전의 저장소와 지금의 새로운 버전의 저장소를 합치고 싶은 생각이 들었다.

지금의 버전과 딱히 동시에 관리해야 할 이유는 없지만, 과거 버전의 이력이 날아가는것도 아쉬워서
과거의 이력과 현재의 새로운 저장소를 합치는 방법에 대해서 고민을 했는데

원리적으로만 따지면, svnadmin dump를 통해 서브버전의 저장소를 전부 뱉어내고
뱉어낸 녀석을 합치고 싶은 저장소에 겹치게 하는 방법으로 생각이 된다.

일단 돌려봐야 알겠지만, 보기보다는 위험이 높아 보이는 작업 -_-


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

SVN relocate / switch  (0) 2011.05.11
svnadmin dump / load를 이용한 저장소 합치기  (2) 2011.05.09
svn export 2가지 방법  (2) 2010.11.22
svn export 와 checkout의 차이점  (0) 2010.11.18
svn blame  (4) 2010.11.18
Posted by 구차니
svn export는 2가지 방법으로 가능하다.

1. 이미 받아놓은 svn working copy 에서 하기

    단, 이 경우 새로운 폴더를 생성하여 그 안에 export 해야 안전하다.
    (현재 디렉토리 이름 그대로 export 하므로 이름이 겹쳐진다.)


2. 서버에서 직접 받아 export 하기


Posted by 구차니

svn checkout은 svn을 통해서 개발용 소스트리를 받아오는데 쓰인다.
svn export는 svn을 통해서 배포용 소스트리를 받아오는데 쓰인다.

굳이 두개의 차이점을 말을 하자면
export는 .svn 폴더(관리용 정보)가 제외된 녀석이고
checkout은 .svn 폴더가 포함되어 있다는 차이이다.


export는 다른 저장소로 소스를 옮길때 사용한다고 한다.
Posted by 구차니


blame은 "비난하다 / 책임을 묻다" 라는 의미가 있는데
대부분은 비난하다로 이해를 하다보니 svn에서 모호한 용어중에 하나였다.
서브버전 책을 읽다보니, blame은 cvs의 annotate(주석을 달다) 에서 온 기능이라는데

정확하게는 아래와 같이
$ svn help blame
blame (praise, annotate, ann): 지정한 파일이나 URL의 내용의 수정내역을
각 라인별로 리비전과 작성자를 보여줍니다.
사용법: blame TARGET[@REV]...

  REV가 지정되면, 지정된 REV에서부터 찾아 보여줍니다.

라인별로 변경점을 리비전과 작성자와 함께 보여준다고 한다.
아무튼 blame의 어감이 부정적이라 praise(칭찬/찬양하다) 라고 한다는데
이래저래 기능에 비해서 적절하지 않은 용어인듯 -_-

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

svn export 2가지 방법  (2) 2010.11.22
svn export 와 checkout의 차이점  (0) 2010.11.18
apache2 리눅스 계정으로 인증하기(PAM)  (0) 2010.11.11
Apache + SVN on Ubuntu 10.04  (0) 2010.11.03
visualSVN  (0) 2010.09.09
Posted by 구차니
우분투에서 apache2는 기본값으로 www-data:www-data 유저/그룹으로 실행된다.

보안이랑은 좀 거리가 멀어지는 느낌이지만, www-data 유저를 shadow 그룹으로 넣고
<Location /svn/repos1>
        DAV svn
        SVNPath /home/svn/repos1

        AuthPAM_Enabled on
        AuthType Basic
        AuthName "Subversion Repository"
        AuthUserFile /etc/shadow
        Require group www-data
        Require valid-user
</Location>
위와 같이 설정을 해주니, shadow의 로그인 정보를 이용하여 svn에 접근할수 있게 되었다.


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

svn export 와 checkout의 차이점  (0) 2010.11.18
svn blame  (4) 2010.11.18
Apache + SVN on Ubuntu 10.04  (0) 2010.11.03
visualSVN  (0) 2010.09.09
TortoiseSVN tag/branch = copy  (2) 2010.04.30
Posted by 구차니
apache2를 설치했다면 추가적으로 "libapache2-svn" 패키지를 설치해준다.
그리고 /etc/apache2/httpd.conf 에 설정을 해주고 재시작하면 보인다!
(계정설정은 나중에 해보고 다시 수정)

--- 2010.11.09 추가
/home/svn
/home/svn/svn.passwd
/home/svn/repos1

식으로 파일및 디렉토리가 구성되어 있으며
htpasswd -c /home/svn/svn.passwd [username]
으로 암호파일을 생성한다.

계정설정은 아래의 링크에 나온대로 /etc/apache2/httpd.conf 에 설정을 해주면 된다.
<Location /svn/repos1>
    DAV svn
    SVNPath /home/svn/repos1

    AuthType Basic
    AuthName "Subversion Repository"
    AuthUserFile /home/svn/svn.passwd
    Require valid-user
</Location>

AuthType / AuthName / AuthUserFile 모두 설정되어야 하며
apache를 재시작하면(sudo service apache2 restart) 설정이 적용된다.
tortoiseSVN 이나 웹을 통해 접근시 암호를 물어보게 된다.

[링크 : http://nya.springnote.com/pages/3710557]

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

svn blame  (4) 2010.11.18
apache2 리눅스 계정으로 인증하기(PAM)  (0) 2010.11.11
visualSVN  (0) 2010.09.09
TortoiseSVN tag/branch = copy  (2) 2010.04.30
cvs2svn 사용방법 2  (0) 2010.04.23
Posted by 구차니
visualSVN은 apache와 svn 서버를 통합한 녀석으로 윈도우용 버전에 free / enterprise 버전이 존재한다.
예전에 아파치 + SVN 통합은 먼가 복잡해서 포기했었는데 이녀석을 한번 시간내서 설치해 봐야겠다.


기능상의 제약이 있지만, 상업용도로도 Standard Edition을 무료로 사용이 가능하다는 것은 충분한 장점!

[링크 : http://www.phpk.org/archives/181]
[링크 : http://www.visualsvn.com/]

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

apache2 리눅스 계정으로 인증하기(PAM)  (0) 2010.11.11
Apache + SVN on Ubuntu 10.04  (0) 2010.11.03
TortoiseSVN tag/branch = copy  (2) 2010.04.30
cvs2svn 사용방법 2  (0) 2010.04.23
svn / svnadmin 도움말  (0) 2010.04.23
Posted by 구차니

꼬부기에서 Tag/ Branch를 누르면 위와 같이 경고를 출력한다.
내가 사용중인 소스(Working copy)에 변경점이 있고, 서버와 버전이 동일하지 않기 때문에
변경점이 손실될수도 있다는 내용이다.

CVS에 비하면 부드러운 메시지이나(CVS는 서버와 workin copy가 동일하지 않으면 tag 자체를 시도할수 없다.)
어떤면에서는 CVS처럼 강인하게 변경점이 있으면 할수 없도록 하는 것도 나쁘진 않다고 생각된다.

하지만, 자유도 측면에서 서버내용을 독립적으로 분기할수 있다는 점은 상당한 매력이다.

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

Apache + SVN on Ubuntu 10.04  (0) 2010.11.03
visualSVN  (0) 2010.09.09
cvs2svn 사용방법 2  (0) 2010.04.23
svn / svnadmin 도움말  (0) 2010.04.23
CVS / SVN 장단점, 차이점 비교  (6) 2010.04.07
Posted by 구차니
예전글에서 프로젝트 리비전을 분할관리 해야할 것 같아서 다시 한번 시도를 해봤는데 아래와 같은 내용이 있었다.

USAGE:
cvs2svn [OPTIONS]... [-s SVN-REPOS-PATH|--dumpfile=PATH|--dry-run] CVS-REPOS-PATH
cvs2svn [OPTIONS]... --options=PATH
CVS-REPOS-PATH The filesystem path of the part of the CVS repository that you want to convert. It is not possible to convert a CVS repository to which you only have remote access; see the FAQ for details. This doesn't have to be the top level directory of a CVS repository; it can point at a project within a repository, in which case only that project will be converted. This path or one of its parent directories has to contain a subdirectory called CVSROOT (though the CVSROOT directory can be empty).
Configuration via options file
--options=PATH Read the conversion options from the specified file. See section options file method for more information.
Output options
-s PATH
--svnrepos PATH
Write the output of the conversion into a Subversion repository located at PATH. This option causes a new Subversion repository to be created at PATH unless the --existing-svnrepos option is also used.

[링크 : http://cvs2svn.tigris.org/cvs2svn.html]



예를들어
/home/cvs
|-- CVSROOT
|-- Project1
|-- Project2
`-- Project3
이런구조의 cvs repository라면,

$ cvs2svn --svnrepos /home/svn/ --encoding=cp949 /home/cvs/
으로 할경우, 리비전이 전부 하나로 묶이고, 프로젝트가 분리되지 않는다.

$ cvs2svn --svnrepos /home/svn/Project1 --encoding=cp949 /home/cvs/Project1
$ cvs2svn --svnrepos /home/svn/Project2 --encoding=cp949 /home/cvs/Project2
$ cvs2svn --svnrepos /home/svn/Project3 --encoding=cp949 /home/cvs/Project3
이렇게 하면 개별 프로젝트로 repository가 생성이 된다.
(부가적으로 revision이 단순해져서 변환도 상대적으로 빨라지는 듯하다)

2009/05/10 - [프로그램 사용/CVS / SVN / GIT] - cvs2svn 사용방법

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

visualSVN  (0) 2010.09.09
TortoiseSVN tag/branch = copy  (2) 2010.04.30
svn / svnadmin 도움말  (0) 2010.04.23
CVS / SVN 장단점, 차이점 비교  (6) 2010.04.07
GIT는 리눅스에서 받으시는걸 추천합니다.  (0) 2010.03.18
Posted by 구차니
자세히 보면 티가 나지만, 어떤녀석은 URL 이고 어떤 녀석은 PATH이다.
일단 URL에서 파일 경로일 경우에는 file:/// 이라고 / 개 3개가 들어가야 한다.

$ svnadmin create [repository direcotry name]
$ svn checkout file:///[absolute path] [name of repository which will create]

머.. 일단 콘솔에서는 이렇게 초기화 하고 만들면 될 듯.

$ svnadmin help
general usage: svnadmin SUBCOMMAND REPOS_PATH  [ARGS & OPTIONS ...]
Type 'svnadmin help <subcommand>' for help on a specific subcommand.

Available subcommands:
   crashtest
   create
   deltify
   dump
   help (?, h)
   hotcopy
   list-dblogs
   list-unused-dblogs
   load
   lslocks
   lstxns
   recover
   rmlocks
   rmtxns
   setlog
   verify

$ svnadmin help create
create: usage: svnadmin create REPOS_PATH

Create a new, empty repository at REPOS_PATH.

Valid options:
  --bdb-txn-nosync         : disable fsync at transaction commit [Berkeley DB]
  --bdb-log-keep           : disable automatic log file removal [Berkeley DB]
  --config-dir arg         : read user configuration files from directory ARG
  --fs-type arg            : type of repository: 'fsfs' (default) or 'bdb'

$ svn help
usage: svn <subcommand> [options] [args]
Subversion command-line client, version 1.3.2.
Type 'svn help <subcommand>' for help on a specific subcommand.

Most subcommands take file and/or directory arguments, recursing
on the directories.  If no arguments are supplied to such a
command, it recurses on the current directory (inclusive) by default.

Available subcommands:
   add
   blame (praise, annotate, ann)
   cat
   checkout (co)
   cleanup
   commit (ci)
   copy (cp)
   delete (del, remove, rm)
   diff (di)
   export
   help (?, h)
   import
   info
   list (ls)
   lock
   log
   merge
   mkdir
   move (mv, rename, ren)
   propdel (pdel, pd)
   propedit (pedit, pe)
   propget (pget, pg)
   proplist (plist, pl)
   propset (pset, ps)
   resolved
   revert
   status (stat, st)
   switch (sw)
   unlock
   update (up)

Subversion is a tool for version control.
For additional information, see http://subversion.tigris.org/

$ 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
  --incremental            : give output suitable for concatenation
  --xml                    : output in XML
  --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
  --config-dir arg         : read user configuration files from directory ARG

$ svn help checkout
checkout (co): Check out a working copy from a repository.
usage: checkout URL[@REV]... [PATH]

  If specified, REV determines in which revision the URL is first
  looked up.

  If PATH is omitted, the basename of the URL will be used as
  the destination. If multiple URLs are given each will be checked
  out into a sub-directory of PATH, with the name of the sub-directory
  being the basename of the URL.

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
  -q [--quiet]             : print as little as possible
  -N [--non-recursive]     : operate on single directory only
  --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
  --config-dir arg         : read user configuration files from directory ARG
  --ignore-externals       : ignore externals definitions


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

TortoiseSVN tag/branch = copy  (2) 2010.04.30
cvs2svn 사용방법 2  (0) 2010.04.23
CVS / SVN 장단점, 차이점 비교  (6) 2010.04.07
GIT는 리눅스에서 받으시는걸 추천합니다.  (0) 2010.03.18
TortoiseGIT  (0) 2010.03.18
Posted by 구차니