Migrate some of the SVN-specific content to Git.
authorgerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 25 Jan 2014 00:17:46 +0000 (00:17 +0000)
committergerald <gerald@f5534014-38df-0310-8fa8-9805f1628bb7>
Sat, 25 Jan 2014 00:17:46 +0000 (00:17 +0000)
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@54953 f5534014-38df-0310-8fa8-9805f1628bb7

docbook/asciidoc.conf
docbook/wsdg_src/WSDG_chapter_env_intro.xml
docbook/wsdg_src/WSDG_chapter_sources.asciidoc
docbook/wsdg_src/WSDG_chapter_tools.xml

index ec33e9ebfed0fb6433c09c607a3d25eec14e4949..5be3772e8fcdfb85ae30bfd80f9f2900b30c4d3d 100644 (file)
@@ -9,7 +9,11 @@ wireshark-major-minor-version:\[\]=1.11
 
 wireshark-bugs-site:\[\]=https://bugs.wireshark.org/
 wireshark-download-page:\[\]=http://www.wireshark.org/download/
-wireshark-repository-site:\[\]=https://code.wireshark.org/review
+wireshark-git-anonhttp-url:\[\]=https://code.wireshark.org/review/wireshark
+wireshark-git-http-url:\[\]=https://your.username@code.wireshark.org/review/wireshark
+wireshark-git-ssh-url:\[\]=ssh://your.username@code.wireshark.org:29418/wireshark
+wireshark-code-review-url:\[\]=https://code.wireshark.org/review
+wireshark-code-browse-url:\[\]=https://code.wireshark.org/review/gitweb?p=wireshark.git
 wireshark-web-site:\[\]=http://www.wireshark.org/
 wireshark-wiki-site:\[\]=http://wiki.wireshark.org/
 
index 24936de73a24255a1966626b486c5ca14839462e..b505751efc3fe5d7816dad23927d53c728408a55 100644 (file)
        The README.developer is packed full with all kinds of details relevant
        to the developer of Wireshark source code. It advices you around common
        pitfalls, shows you basic layout of dissector code, shows details of the
-       API's available to the dissector developer, etc.  
+       API's available to the dissector developer, etc.
        </para>
        </note>
        </listitem>
              repository is checked in, a mail to this mailing list is generated.
              If you want to be notified about all the changes to the SVN
              repository, join this list. Details about the SVN repository can be
-             found in <xref linkend="ChSrcSVNServer"/>.
+             found in <xref linkend="ChSrcGitRepository"/>.
            </para>
          </listitem>
        </varlistentry>
        If you send captured data to the mailing lists, or add it to your bug report,
        be sure it doesn't contain any sensitive or confidential information,
        such as passwords.  Visibility of such files can be limited to certain
-       groups in the Bugzilla database though. 
+       groups in the Bugzilla database though.
        </para>
        </note>
   </section>
index 38f59da84f39ae00ed616c11a2f51a09ef7bbbd8..6706ca41fb8ad62c10148864ab122a9841a71d57 100644 (file)
 This chapter will explain how to work with the Wireshark source code.
 It will show you how to:
 
-
 * Get the source
 
 * Compile it on your machine
 
 * Submit changes for inclusion in the official release
 
-
-However, this chapter will not explain the source file contents in detai,
-such as where to find a specific functionality. This is done in
+This chapter will not explain the source file contents in detail,
+such as where to find specific functionality. This is done in
 <<ChCodeOverview>>.
 
+[[ChSrcGitRepository]]
 
-[[ChSrcSVNServer]]
-
-
-=== The Wireshark Subversion repository
-
-Subversion is used to keep track of the changes made to the Wireshark
-source code. The Wireshark source code is stored inside Wireshark project's
-Subversion repository located at a server at the wireshark.org domain.
+=== The Wireshark Git repository
 
+http://git-scm.com/[Git] is used to keep track of the changes made to the
+Wireshark source code. The code is stored inside Wireshark project's Git
+repository located at a server at the wireshark.org domain.
 
-To quote the Subversion book about "What is Subversion?":
+// To quote the Subversion book about "What is Subversion?":
 
+// "Subversion is a free/open-source version control system. That is,
+//     Subversion manages files and directories over time. A tree of files is
+//     placed into a central repository. The repository is much like an ordinary
+//     file server, except that it remembers every change ever made to your files
+//     and directories. This allows you to recover older versions of your data,
+//     or examine the history of how your data changed. In this regard, many
+//     people think of a version control system as a sort of "time machine".
+//     "
 
-"Subversion is a free/open-source version control system. That is,
-    Subversion manages files and directories over time. A tree of files is
-    placed into a central repository. The repository is much like an ordinary
-    file server, except that it remembers every change ever made to your files
-    and directories. This allows you to recover older versions of your data,
-    or examine the history of how your data changed. In this regard, many
-    people think of a version control system as a sort of "time machine".
-    "
-
-
-[TIP]
-.Tip: Subversion and SVN is the same!
+.Git is our *third* revision conrol system
+[NOTE]
 ====
-Subversion is often abbreviated as SVN, as the command-line tools are
-abbreviated that way. You will find both terms with the same meaning in
-this book, in mailing list discussions and elsewhere.
-
-
+Wireshark originally used http://www.nongnu.org/cvs/[Concurrent Versions System]
+(CVS) and migrated to http://subversion.apache.org/[Subversion] in July 2004.
+The Subversion repository was subsequently migrated to Git in January 2014.
 ====
 
-Using Wireshark's Subversion repository you can:
-
-
-* keep your private sources up to date with very little effort
-
-* get a mail notification if someone changes the latest sources
+Using Wireshark's Git repository you can:
 
-* get the source files from any previous release (or any other point in time)
+* Keep your private sources up to date with very little effort
 
-* have a quick look at the sources using a web interface
+* Get a mail notification when the official source code changes
 
-* see which person changed a specific piece of code
+* Get the source files from any previous release (or any other point in time)
 
-* ... and a lot more things related to the history of the Wireshark source
-code development
+* Have a quick look at the sources using a web interface
 
+* See which person changed a specific piece of code
 
-Subversion is divided into a client and a server part.
-Thanks to Gerald Combs (the maintainer of the Subversion server),
-no user has to deal with the maintenance of the Subversion server.
-You will only need a Subversion client, which is available as
-both a command-line and a GUI tool for many different platforms.
+* and much more
 
-For further reference about Subversion, have a look at the homepage of the
-Subversion project: http://subversion.apache.org/[]. There
-is a good and free book about it available at: http://svnbook.red-bean.com/[].
+Changes to the official repository are managed using the
+https://code.google.com/p/gerrit/[Gerrit] code review sytem. Gerrit
+makes it easy to test and disucss changes before they are pushed to the
+main repository. For an overview of Gerrit see the
+https://code.wireshark.org/review/Documentation/intro-quick.html[Quick Introduction].
 
-Please note that Wireshark's public (anonymous) Subversion repository is
-separate from the main repository.
-It may take several minutes for committed changes to appear in the
-public repository - so please be patient for a few minutes if you
-desperately need a code change that was committed to the repository
-very recently.
+// Subversion is divided into a client and a server part.
+// Thanks to Gerald Combs (the maintainer of the Subversion server),
+// no user has to deal with the maintenance of the Subversion server.
+// You will only need a Subversion client, which is available as
+// both a command-line and a GUI tool for many different platforms.
+//
+// For further reference about Subversion, have a look at the homepage of the
+// Subversion project: http://subversion.apache.org/[]. There
+// is a good and free book about it available at: http://svnbook.red-bean.com/[].
+//
+// Please note that Wireshark's public (anonymous) Subversion repository is
+// separate from the main repository.
+// It may take several minutes for committed changes to appear in the
+// public repository - so please be patient for a few minutes if you
+// desperately need a code change that was committed to the repository
+// very recently.
 
 [[ChSrcWebInterface]]
 
-==== The web interface to the Subversion repository
-
-If you need a quick look at the Wireshark source code,
-you will only need a Web browser.
-
-A _simple view_ of the latest developer version can be
-found at:
-
-http://anonsvn.wireshark.org/wireshark/trunk/[].
-
-A _comprehensive view_ of all source versions
-(e.g. including the capability to show differences between versions)
-is available at:
-
-http://anonsvn.wireshark.org/viewvc/viewvc.cgi/[].
-
-Of special interest might be the subdirectories:
-
-* 'trunk': the very latest source files
-
-* 'releases': the source files of all released versions
+==== The web interface to the Git repository
+
+If you need a quick look at the Wireshark source code you can
+browse the most recent file versions in the master branch using Gitweb:
+
+https://code.wireshark.org/review/gitweb?p=wireshark.git;a=tree
+
+You can also view commit logs, branches, tags, and past revisions:
+
+https://code.wireshark.org/review/gitweb?p=wireshark.git
+
+Like most revision control systems, Git uses
+http://en.wikipedia.org/wiki/Branching_%28revision_control%29[branching] to
+manange different copies of the source code and allow parallel development.
+Wireshark uses the following branches for official releases:
+
+* 'master': Main feature development and odd-numbered "feature" releases.
+* 'master-x.y': Stable release maintenance. For example, master-1.10 is used
+  to manage the 1.10.x official releases.
+
+// wireshark-code-browse-url:[]
+//
+// you only need a Web browser.
+//
+// A _simple view_ of the latest developer version can be
+// found at:
+//
+// http://anonsvn.wireshark.org/wireshark/trunk/[].
+//
+// A _comprehensive view_ of all source versions
+// (e.g. including the capability to show differences between versions)
+// is available at:
+//
+// http://anonsvn.wireshark.org/viewvc/viewvc.cgi/[].
+//
+// Of special interest might be the subdirectories:
+//
+// * 'trunk': the very latest source files
+//
+// * 'releases': the source files of all released versions
 
 [[ChSrcObtain]]
 
 === Obtain the Wireshark sources
 
-There are several ways to obtain the sources from Wireshark's Subversion
-server.
-
-
+There are several ways to obtain the sources from Wireshark's Git
+repository.
 
 [TIP]
-.Anonymous Subversion access is recommended!
+.Check out from the master branch using Git.
 ====
-It can make your life much easier, compared to updating your source tree by
+Using Git is much easier than synchronizing your source tree by hand
 using any of the zip file methods mentioned below.
-Subversion handles merging of changes into your personal source tree in a
+Git merges of changes into your personal source tree in a
 very comfortable and quick way. So you can update your source tree several
 times a day without much effort.
-
-
 ====
 
 
 [NOTE]
-.Keep your sources "up to date"!
+.Keep your sources up to date
 ====
 The following ways to retrieve the Wireshark sources are sorted in
 decreasing source timeliness.
 If you plan to commit changes you've made to the sources,
 it's a good idea to keep your private source tree as current as possible.
-
-
 ====
 
 The age mentioned in the following sections indicates the age of the
@@ -165,37 +172,43 @@ most recent change in that set of the sources.
 [[ChSrcAnon]]
 
 
-==== Anonymous Subversion access
+==== Git over HTTPS or SSH
 
 Recommended for development purposes.
 
-
 Age: a few minutes.
 
+You can use a Git client to download the source code from Wireshark's code
+review system. Anyone can clone from the anonymous URL:
 
-You can use a Subversion client to download the source code from
-Wireshark's anonymous Subversion repository. The URL for the repository
-trunk is:
-wireshark-repository-site:[]/wireshark/trunk/[].
+* wireshark-git-anonhttp-url:[]
 
+If you create a Gerrit account you can clone from an authenticated URL:
 
-See <<ChToolsSubversion>>on how to install a Subversion client.
+* wireshark-git-http-url:[]
+* wireshark-git-ssh-url:[]
 
+SSH lets you use Gerrit on the
+https://code.wireshark.org/review/Documentation/cmd-index.html#_server[command line].
+HTTP lets you access the repository in environments that block the Gerrit SSH
+port (29418). Command line access isn't available over HTTP.
 
-For example, to check out using the command-line Subversion client, you
-would type:
-
+See <<ChToolsSubversion>> for information on installing and configuring a Git
+client.
 
-+$ svn checkout wireshark-repository-site:[]/wireshark/trunk wireshark+
+For example, to check out using the command-line Git client you
+would type:
 
-The checkout has to be only done once. This will copy all the sources of
-the latest version (including directories) from the server to your machine.
-This will take some time, depending on the speed of your internet connection.
+----
+$ git clone wireshark-git-anonhttp-url:[]
+----
 
+The checkout has to be only done once. This will copy all the sources of the
+latest version (including directories) from the server to your machine. This
+may take some time, depending on the speed of your internet connection.
 
 [[ChSrcSVNWeb]]
 
-
 ==== Anonymous Subversion web interface
 
 Recommended for informational purposes only, as only individual files can
@@ -207,7 +220,7 @@ Age: a few minutes (same as anonymous Subversion access).
 
 The entire source tree of the Subversion repository is available via a
 web interface at:
-wireshark-repository-site:[]/viewvc/viewvc.cgi/[].
+wireshark-code-browse-url:[].
 You can view each revision of a particular file, as well as diffs between
 different revisions.
 You can also download individual files but not entire directories.
index 4c3eaf7406e4bc65e3d244f629ac8dce76feb62f..2244ff1b7cf57bbfa8542d2bffa0226be204a2c4 100644 (file)
@@ -591,7 +591,7 @@ PARTICULAR PURPOSE.]]>
       <para>
         The following table gives an overview of the possible
         Microsoft toolchain variants and their specific C compiler
-        versions ordered by release date. 
+        versions ordered by release date.
       </para>
       <informaltable frame="all">
         <tgroup cols="4">
@@ -1455,7 +1455,7 @@ warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.]]>
     SVN) server to keep track of all the changes done to the source
     code. Details about the usage of Subversion in the Wireshark
     project can be found in
-    <xref linkend="ChSrcSVNServer" />.</para>
+    <xref linkend="ChSrcGitRepository" />.</para>
     <para>If you want to work with the source code and are planning to
     commit your changes back to the Wireshark community, it is
     recommended to use a SVN client to get the latest source files.