간만에 모닝 포스팅! ㅋ

VisaulSVN에서는 Log Message 수정하기 설정하는 방법을 따로 정리해봅니다.
당근 윈도우즈 환경 기준으로 설명합니다.

1.  해당 SVN저장소에서 hook 폴더 하위에 pre-revprop-change.bat을 생성.
  {SVNHome}\{저장소}\hook\pre-revprop-change.bat
   ex)D:\svnhome\testproject\hook\pre-revprop-change.bat

2. pre-revprop-change.bat 파일을 열어 아래 내용 복사 후 저장.
@ECHO OFF
:: Set all parameters. Even though most are not used, in case you want to add
:: changes that allow, for example, editing of the author or addition of log messages.
set repository=%1
set revision=%2
set userName=%3
set propertyName=%4
set action=%5

:: Only allow the log message to be changed, but not author, etc.
if /I not "%propertyName%" == "svn:log" goto ERROR_PROPNAME

:: Only allow modification of a log message, not addition or deletion.
if /I not "%action%" == "M" goto ERROR_ACTION

:: Make sure that the new svn:log message is not empty.
set bIsEmpty=true
for /f "tokens=*" %%g in ('find /V ""') do (
set bIsEmpty=false
)
if "%bIsEmpty%" == "true" goto ERROR_EMPTY

goto :eof

:ERROR_EMPTY
echo Empty svn:log messages are not allowed. >&2
goto ERROR_EXIT

:ERROR_PROPNAME
echo Only changes to svn:log messages are allowed. >&2
goto ERROR_EXIT

:ERROR_ACTION
echo Only modifications to svn:log revision properties are allowed. >&2
goto ERROR_EXIT

:ERROR_EXIT
exit /b 1

3. 로컬에서 TotoisSVN으로 폴더를 선택하고, 아래와 같이 log message 수정한다.
사용자 삽입 이미지




















우리 이제 소스 커밋 후에도 로그메세지 수정해서 변경내역 잘 관리해봅시다.

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 좐군

2011/03/08 08:51 2011/03/08 08:51
,
Response
No Trackback , No Comment
RSS :
http://John.tobe30.com/tc/rss/response/332

Trackback URL : http://John.tobe30.com/tc/trackback/332

Leave a comment
[로그인][오픈아이디란?]

Though many teams are using Subversion (SVN) to work together and share code, version control software provides a huge number of features that are not often used.  Just about any developer these days knows how to checkout a project and commit or revert changes.  But a lot of teams don’t really use more advanced features like branching and tagging to organize releases.

The great thing about version control systems like SVN is that you gain a bunch of really useful functionality – even if you have only been using it for sharing code.  One of those features is the ability to create an export of all modified files since the previous release.  A common scenario is when the team is working on a web application and it’s time to deploy all the recent changes to the production server.  An app that is distributed would normally use tags or branches to keep the versions straight.  But some teams prefer to just keep moving forward on the HEAD revision and never look back.  If this sounds like you, luckily SVN provides an easy way to get all changed files since your last deployment and package them up with just a few clicks.

Lets say that you last deployed your application from repository version #500.  After a few weeks of development, the repository is now up to revision #575.  The team has decided that the code is stable and you are ready to package up all new/changed files to transfer to the host server, client, etc.

1. Using TortoiseSVN, right-click on your working folder and select “Show Log” from the TortoiseSVN menu.

2. Click the revision that was last published (#500 in this example)

3. Ctrl+Click the HEAD revision (or whatever revision you want to release ie #575) so that both the old and the new revisions are highlighted.

4. Right-click on either of the highlighted revisions and select “Compare revisions.”  This will open a dialog window that lists all new/modified files.

5. Select all files from this list (Ctrl+a) then right-click on the highlighted files and select “Export selection to…”

You’ll be prompted for a location to save your updated files and SVN will export them all with the directory structure preserved.  You can then zip this up for your client, transfer it to your host or whatever you normally do to deploy the application.

Some teams prefer to actually do an update right on the production server and simply checkout the files that way.  If your hosting setup permits and you don’t mind the “.svn” files in on your server, that is another easy option for deploying code.

For even more automation, this could all be done using batch, shell or ant build scripts.  If you have such a script, please feel free to post it in the comments.


원문 : http://www.verysimple.com/blog/2007/09/06/using-tortoisesvn-to-export-only-newmodified-files/

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 좐군

2009/09/02 21:03 2009/09/02 21:03
, ,
Response
No Trackback , No Comment
RSS :
http://John.tobe30.com/tc/rss/response/192

Trackback URL : http://John.tobe30.com/tc/trackback/192

Leave a comment
[로그인][오픈아이디란?]

How To Install Trac on Windows

원문 : http://how-to-solutions.com/how-to-install-trac-on-windows.html

Trac is front end to subversion with integrated wiki for developers. Use this How To article to help you install Trac on a Windows computer that isn’t running Apache. The guide assumes you have a working Subversion repository and are using the TortoiseSVN shell on client PC’s.

Introduction

Firstly let me say Trac is a brilliant bit of software. It is basically a friendly front end to subversion which is a version control system. Trac allows you to use its in-built tracd software so you can view Subversion changes through a browser. Working with developers, this lets you track changes to code easily as well as support development goals through Trac’s project management tools.

This How To guide is by no means a replacement for the Trac documentation. The Trac site and the support provided by their developers is really very good. However I ran into a number of problems when installing the software on a standalone Windows server that wasn’t running Apache.

Installation Files

Installing the Software

1. OK so let’s assume you have a working repository which we will say is located at E:\repos and a folder with all of your code located at E:\code.

2. Let’s install Python - Double click the python-2.5.2.msi file and select ‘Install for all users’. Click Next and then Next again (change the location of the Python install if you wish). Click Next once more and Python will start installing. Click Finish and that’s Python installed.

3. Now let’s install the Python SVN file (”svn-python” etc) - Double click the file and then click NextNextagain and Next once more. The installation will run and click the Finish button when prompted.

4. Then we install Python SQLite - Double click the file and then click NextNext again and Next once more. The installation will run and click the Finish button when prompted.

5. Trac needs to be installed now - Double click the Trac exe and then click NextNext again and Next once more. The installation will run and click the Finish button when prompted.

6. Lastly we need to install Genshi - Double click the Genshi file and then click NextNext again and Nextonce more. The installation will run and click the Finish button when prompted.

Getting Trac Running

1. Create a folder called tracproject or something similar - I’d recommend putting it in the same directory as your repository.

2. Get your ez_setup.py file and move it into C:\Python25\Scripts folder(or wherever your Python install is located). Bring up a command prompt (Click on Start > Run and type ‘cmd‘). Enter the following making sure you hit Enter after each of the four lines.

cd c:\
cd pyth*
cd scr*
ez_setup.py

3. This will bring up about 10 lines of code and then leave the command prompt in the same directory. Now type the following and hit Enter.

trac-admin E:\project initenv

This will install Trac to the E:\project directory. Now the CMD window will prompt you to input four pieces of information. Look at what I used below to indicate what you should use.

Project Name [My Project] - I used “mycode”
Database connection string [sqlite:db/trac.db]> Leave blank by hitting Enter
Repository type [svn]> Leave blank by htting Enter
Path to Repository [/path/to/repos]> E:\repos

The CMD window will install Trac based on the existing repository. The more existing revisions you have in the repository the longer this process will take, it’s indexing each change you’ve ever made. Once the install is complete the last line should say “Congratulations!” but don’t close the cmd window!. So Trac is now installed but you’re not done yet. It must be configured correctly to get the most out of it’s use.

4. To easily handle accounts in Trac I would 100% recommend installing the Account Manager Pluginavailable from Trac Hacks (a handy site with lots of Trac plugins) - let’s do this now. In the same cmd window (which should still be in C:\Python25\Scripts) type the following and hit Enter.

easy_install http://trac-hacks.org/svn/accountmanagerplugin/trunk

This will bring up about 12 lines of code with the last line starting “Finished processing dependencies”.

5. In Windows open up the E:\project folder and go into the conf sub-directory. There’s a file called trac.ini- open it in an editor like Notepad. You need to copy the following lines below and paste them into Notepad above the [header_logo] section.

[components]
acct_mgr.admin.accountmanageradminpage = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.htfile.htdigeststore = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled
acct_mgr.web_ui.accountmodule = enabled
acct_mgr.web_ui.loginmodule = enabled
acct_mgr.web_ui.registrationmodule = enabled
trac.web.auth.loginmodule = disabled

Once that’s been pasted in save the ini file and close Notepad. In explorer go up a level to E:\project and create a new text file called passwd.txt - leave the file blank.

6. Lastly let’s give all anonymous users (those who aren’t logged in) admin access. In the same CMD window type the following and hit Enter.

trac-admin E:\project permission add anonymous TRAC_ADMIN

Note this will not return any lines. We will remove the admin access later once you, the real admin, have created your account. And with that we can start Tracd. In CMD type the following and hit Enter.

tracd –p 8000 E:\project

7. Open up your favourite browser and paste this URL: http://localhost:8000/. You should see a link to the name you gave your project, such as mycode. Click on that and there you have Tracd - the front end of the Trac software.

8.In the top right there’s a tab called Admin - click on it. On the menu on the right click on Configuration and when the page loads select HtDigestStore where the filename is E:\project\passwd.txt and the realm is “trac“.

9. Below Configuration is Users - click on it. Create yourself an admin account. Now using the menu go to Permissions. On the right of that page you will see the Grant Permission section. Use the subject field for the username you gave yourself on the Users page and select the TRAC_ADMIN as Action. Click Add and you will see your username in the middle column of the page with TRAC_ADMIN next to it. For the subject anonymous click on the TRAC_ADMIN so it’s ticked and then click on the Remove selected items button.

10. From now on you will need to use that Admin account to Login and make changes to the Trac environment. By default anonymous users can still view all of the Tracd menu’s to see changes to the repository and view tickets.

I hope this How To guide has helped you get Trac running on your systems. Please feel free to make comments/suggestions/improvement.

이올린에 북마크하기(0) 이올린에 추천하기(0)

Posted by 좐군

2009/01/09 04:01 2009/01/09 04:01
, , ,
Response
No Trackback , No Comment
RSS :
http://John.tobe30.com/tc/rss/response/64

Trackback URL : http://John.tobe30.com/tc/trackback/64

Leave a comment
[로그인][오픈아이디란?]