beautypg.com

Use subversion (svn) to get and check in files – Adobe Dreamweaver CC 2014 v.13 User Manual

Page 407

background image

To the top

Dreamweaver can connect to a server that uses WebDAV (Web-based Distributed Authoring and Versioning), which is a set of extensions to the
HTTP protocol that allow users to collaboratively edit and manage files on remote web servers. For more information, see

www.webdav.org

.

1. If you have not already done so, define a Dreamweaver site that specifies the local folder you use to store your project files.

2. Select Site > Manage Sites, and then double-click your site in the list.

3. In the Site Setup dialog box, select the Servers category and do one of the following:

Click the Add New Server button to add a new server

Select an existing server and click the Edit Existing Server button

4. In the Basic screen, select WebDAV from the Connect Using pop-up menu, and complete the rest of the Basic screen options, as

necessary.

5. Click the Advanced button.

6. Select the Enable File Check Out option and enter the following information:

In the Check Out Name box, enter a name identifying you to other team members.

In the Email Address box, enter your e-mail address.

The name and e-mail addresses are used to identify ownership on the WebDAV server and appear in the Files panel for contact
purposes.

7. Click Save.

Dreamweaver configures the site for WebDAV access. When you use the Check In or Check Out command on any site file, the file is
transferred using WebDAV.

Note: WebDAV may be unable to properly check out any files with dynamic content like PHP tags or SSIs because the HTTP GET renders
these as they are checked out.

Use Subversion (SVN) to get and check in files

Dreamweaver can connect to a server that uses Subversion (SVN), a versioning control system that lets users collaboratively edit and manage
files on remote web servers. Dreamweaver is not a full SVN client, but does let users get the latest versions of files, make changes, and commit
the files.

Important: Dreamweaver CS5 uses the Subversion 1.6.6 client library, and Dreamweaver CS5.5 uses the 1.6.9 client library. Later versions of
the Subversion client library are not backward-compatible. Be aware, if you update a third-party client application (for example, TortoiseSVN) to
work with a later version of Subversion, the updated Subversion application will update local Subversion meta data, and Dreamweaver will no
longer be able to communicate with Subversion. This issue is not affected by updates to the Subversion server as those updates are backward-
compatible. If you do upgrade to a third-party client application that works with Subversion 1.7 or later, you’ll need to check with Adobe for updates
before you can use Subversion with Dreamweaver again. For more information on this issue, see

www.adobe.com/go/dw_svn_en

.

Adobe recommends that you use a third-party file comparison tool as you work with SVN version-controlled files. When you compare files for
differences, you can learn exactly what kinds of changes other users made to the files. For more information on file comparison tools, use a web
search engine such as Google Search to search for “file comparison” or “diff” tools. Dreamweaver works with most third-party tools.

For a video overview of working with SVN and Dreamweaver, see

www.adobe.com/go/lrvid4049_dw

.

Set up an SVN connection

Before you use Subversion (SVN) as a version control system with Dreamweaver, you must set up a connection to an SVN server. You set up a
connection to an SVN server in the Version Control category of the Site Definition dialog box.

The SVN server is a repository of files from which you and other users can get and commit files. It is different from the remote server you typically
use with Dreamweaver. When using SVN, the remote server remains the “live” server for your web pages, and the SVN server exists to hold the
repository of files over which you want to maintain version control. The typical workflow is to get and commit files back and forth between the SVN
server, and then publish them to your remote server from Dreamweaver. The remote server setup is completely separate from the SVN set up.

You must have access to an SVN server and an SVN repository before you begin this set up. For more information about SVN, see the
Subversion website at

http://subversion.apache.org/

.

To set up the SVN connection, follow these steps:

1. Choose Sites > Manage Sites, select the site you want to set up version control for, and click the Edit button.

Note: If you haven’t already set up local and remote folders for a Dreamweaver site, you’ll at least need to set up a local site before
proceeding. (The remote site is not required at this stage, but you will eventually need to set it up before publishing your files to the Web.)
For more information, see Working with Dreamweaver sites.

2. In the Site Setup dialog box, select the Version Control category.

3. Select Subversion from the Access pop-up menu.

4. Set access options as follows:

400

This manual is related to the following products: