Upload
vutruc
View
221
Download
3
Embed Size (px)
Citation preview
Subversion Auto Property Setup
June 14, 2011
Subversion Auto Property Setup 2 6/14/2011
Subversion Auto‐Properties
Purpose The purpose of setting auto‐properties within the Subversion (SVN) client is to ensure that the same properties are being uniformly set for files of the same type. For example, the recommended properties listed below would ensure that all SQL files populated Author, Date, Revision and Location information in the appropriate header:
*.sql = svn:keywords=Author Date Revision HeadURL
The properties listed above will then populate commented templates like:
/* $Author: $ $Date: $ $Revision: $ $HeadURL: $ */
with (upon commit):
/* $Author: peterso3 $ $Date: 2011‐01‐05 13:22:21 ‐0600 (Wed, 05 Jan 2011) $ $Revision: 160340 $ $HeadURL: https://svn.admin.uillinois.edu/svn/aits/DBDevelopment/BAN11G.sql $ */
Setup Auto‐props for TortoiseSVN Listed below are the directions for setting up auto properties with the TortoiseSVN client on Windows.
1. Open a ‘Windows Explorer’ window and go to the local drive (likely C:\) that contains or will contain your checked out copy (Working Copy) of Subversion content.
Subversion Auto Property Setup 3 6/14/2011
2. Within the local drive pane of the ‘Windows Explorer’ pane Right‐Click and select the following TortoiseSVN > Settings.
3. Within the Settings window click on the Edit button in the lower right pane to open the Subversion configuration file.
Subversion Auto Property Setup 4 6/14/2011
4. Once the Subversion configuration file is open, scroll to the bottom of the file and locate the
‘enable‐auto‐props’ setting.
Subversion Auto Property Setup 5 6/14/2011
5. Uncomment the ‘enable‐auto‐props’ setting and ensure its value is set to ‘yes’.
6. Add the values listed below to the Subversion configuration file under the [auto‐props] section:
Subversion Auto Property Setup 6 6/14/2011
*.aspx = svn:keywords=Author Date Revision HeadURL *.java = svn:keywords=Author Date Revision HeadURL *.js = svn:keywords=Author Date Revision HeadURL *.ksh = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.pks = svn:keywords=Author Date Revision HeadURL *.pkb = svn:keywords=Author Date Revision HeadURL *.pl = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.plx = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.rtf = svn:keywords=Author Date Revision HeadURL *.sql = svn:keywords=Author Date Revision HeadURL *.sh = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.txt = svn:keywords=Author Date Revision HeadURL *.vb = svn:keywords=Author Date Revision HeadURL *.xml = svn:keywords=Author Date Revision HeadURL
Subversion Auto Property Setup 7 6/14/2011
7. Ensure the Subversion configuration file is then saved for the changes to take effect before closing.
Setup Auto‐props for SyncroSVN Listed below are the directions for setting up auto properties with the SyncroSVN client (Mainly used on UNIX, Linux & Mac).
1. Within the SyncroSVN Client select Options > Global Run‐Time Configuration > Edit ‘config’ file
Subversion Auto Property Setup 8 6/14/2011
2. Once the ‘config’ file is open uncomment the ‘enable‐auto‐props’ line within the file
3. Ensure that the ‘enable‐auto‐props’ value is set to ‘yes’
4. Add the values listed below to the ‘config’ file under the [auto‐props] section:
Subversion Auto Property Setup 9 6/14/2011
*.aspx = svn:keywords=Author Date Revision HeadURL *.java = svn:keywords=Author Date Revision HeadURL *.js = svn:keywords=Author Date Revision HeadURL *.ksh = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.pks = svn:keywords=Author Date Revision HeadURL *.pkb = svn:keywords=Author Date Revision HeadURL *.pl = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.plx = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.rtf = svn:keywords=Author Date Revision HeadURL *.sql = svn:keywords=Author Date Revision HeadURL *.sh = svn:keywords=Author Date Revision HeadURL;svn:eol‐style=native *.txt = svn:keywords=Author Date Revision HeadURL *.vb = svn:keywords=Author Date Revision HeadURL *.xml = svn:keywords=Author Date Revision HeadURL
5. Then save the ‘config’ file. You can also make these changes outside of the SyncroSVN interface by editing the Subversion configuration file directly. It is normally located under ~/.subversion/config on UNIX, Linux & Mac machines.