11.07.2015 Views

Version Control with Subversion - Login

Version Control with Subversion - Login

Version Control with Subversion - Login

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

“Ignoring Unversioned Items”.enable-auto-propsThis instructs <strong>Subversion</strong> to automatically set properties on newly added or importedfiles. The default value is no, so set this to yes to enable this feature. The autopropssection of this file specifies which properties are to be set on which files.log-encodingThis variable sets the default character set encoding for commit log messages. It's apermanent form of the --encoding option (see the section called “svn Options”). The<strong>Subversion</strong> repository stores log messages in UTF-8 and assumes that your log messageis written using your operating system's native locale. You should specify a differentencoding if your commit messages are written in any other encoding.use-commit-timesNormally your working copy files have timestamps that reflect the last time they weretouched by any process, whether your own editor or some svn subcommand. This isgenerally convenient for people developing software, because build systems often lookat timestamps as a way of deciding which files need to be recompiled.In other situations, however, it's sometimes nice for the working copy files to havetimestamps that reflect the last time they were changed in the repository. The svn exportcommand always places these “last-commit timestamps” on trees that it produces.By setting this config variable to yes, the svn checkout, svn update, svnswitch, and svn revert commands will also set last-commit timestamps on files thatthey touch.mime-types-fileThis option, new to <strong>Subversion</strong> 1.5, specifies the path of a MIME types mapping file,such as the mime.types file provided by the Apache HTTP Server. <strong>Subversion</strong> usesthis file to assign MIME types to newly added or imported files. See the section called“Automatic Property Setting” and the section called “File Content Type” for more about<strong>Subversion</strong>'s detection and use of file content types.preserved-conflict-file-extsThe value of this option is a space-delimited list of file extensions that <strong>Subversion</strong>should preserve when generating conflict filenames. By default, the list is empty. Thisoption is new to <strong>Subversion</strong> 1.5.When <strong>Subversion</strong> detects conflicting file content changes, it defers resolution of thoseconflicts to the user. To assist in the resolution, <strong>Subversion</strong> keeps pristine copies of thevarious competing versions of the file in the working copy. By default, those conflictfiles have names constructed by appending to the original filename a custom extensionsuch as .mine or .REV (where REV is a revision number). A mild annoyance <strong>with</strong> thisnaming scheme is that on operating systems where a file's extension determines thedefault application used to open and edit that file, appending a custom extension preventsthe file from being easily opened by its native application. For example, if the fileReleaseNotes.pdf was conflicted, the conflict files might be named Release-Notes.pdf.mine or ReleaseNotes.pdf.r4231. While your system might be configuredto use Adobe's Acrobat Reader to open files whose extensions are .pdf, thereprobably isn't an application configured on your system to open all files whose extensionsare .r4231.You can fix this annoyance by using this configuration option, though. For files <strong>with</strong> oneof the specified extensions, <strong>Subversion</strong> will append to the conflict file names the customextension just as before, but then also reappend the file's original extension. Usingthe previous example, and assuming that pdf is one of the extensions configured inthis list thereof, the conflict files generated for ReleaseNotes.pdf would instead benamed ReleaseNotes.pdf.mine.pdf and ReleaseNotes.pdf.r4231.pdf. Becauseeach file ends in .pdf, the correct default application will be used to view them.interactive-conflictsCustomizing Your <strong>Subversion</strong> Experience198

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!