Changes

Jump to: navigation, search

Brief introduction to SVN

101 bytes removed, 05:12, 22 February 2021
no edit summary
{{man warn|{{man menu|Development has moved to using Git }} please read a [[Brief introduction to Git]]|The development source code of Gramps '''was''' stored in the SVN(Subversion) repository at sourceforge.}}
;<s>[http://svn.code.sf.net/p/gramps/code/ http://svn.code.sf.net/p/gramps/code/]</s>. No longer available see Github for code.
This helps synchronizing changes from various developers, tracking changes, managing releases, etc. If you are reading this, you probably want to do one of two things with SVN: either download the latest source or the development version, or else upload your changes (if you have write access to the repository) or [[Brief_introduction_to_SVN#Making_a_patchfile|make a patchfile]] (if you don't have write access).
* ''maintenance'' - There are many maintenance branches. A maintenance branch is created from the trunk when all the features for a release are complete. New features are not committed to maintenance branch. Releases only come from maintenance branches. The purpose of maintenance branches is to allow the line of code to stabilize while new features are added in trunk. Maintenance branches can be found here: http://svn.code.sf.net/p/gramps/code/branches/maintenance
* ''geps'' - These are meant for development of [[Portal:Enhancement_Proposals|Gramps Enhancement Proposals]]. Most of the time GEPS are developed in the ''trunk''. Occassionally Occasionally a GEP will require extensive reworking or long periods when the code base is ususableunusable. In these cases a branch in ''geps'' can be used as a temporary development area. Once the hard work is done the change should be merged into the trunk and the ''geps'' branch should be removed. ''greps'' branches should follow the naming convention ''gep-<###>-<descriptive text>'' e.g. ''gep-013-server''. Please read the [[#Working with development branches]] section for help with managing these branches.
* ''sandbox'' - These are meant for experimentation purposes. If you want to explore some ideas or try out some changes that would break the ''trunk'' or prototype something that has not made it to a GEP you can create a ''sandbox'' branch. These should be short lived. As soon as you have finished please remove the branch. We reserve the right to remove any ''sandbox'' branch that has not been touched for 12 months. ''sandbox'' branches should use the following naming convention ''<username>-<descriptive text>'' e.g. ''hippy-prototype-rss-idea''. Please read the [[#Working with development branches]] section for help with managing these branches.
== Stable version ==
* To download the source to a ~/gramps{{stable_branch}} gramps41 directory, you can use two methods to access the SVN repository:
# An http frontend to gramps SVN
# SVN access
The second method requires that svn be installed on your system (Debian/Ubuntu: <code>apt-get install subversion</code>; Fedora: <code>yum install subversion</code>).
With the SVN method, type the following in the command line if you '''don't have a sourceforge account''':  <code> svn co <nowiki>http://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps</nowiki>{{stable_branch}} gramps{{stable_branch}}41 gramps41</code>
You should see the downloading progress reported in your terminal.
If you have a sourceforge account, use https instead: <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps</nowiki>{{stable_branch}} gramps{{stable_branch}}41 gramps41</code> 
You will in this case be requested for your root keyring password which will store your sourceforge credentials, and next your password. If the user on your PC is not the same one as on sourceforge, leave password empty and press enter, you will then receive the option to enter a username first, and then the sourceforge password for that username.
If you would like to update your source tree after some time, execute the following command in the top directory of the gramps{{stable_branch}} gramps41 source tree:
<code> svn update</code>
To commit your changes, you need to have checked out the gramps code with https, and have commit access to the Gramps repository (the Gramps admin can give you this, [[Contact|Brian Matherly or Benny Malengier]]). Commit happens if execute:
<code> svn commit -m "message describing the nature of the change"</code>
Since uploading is a potentially dangerous operation, most people do not obtain write access to the SVN repository. In this case, create a patch, and commit this on the [http://bugs.gramps-project.org ticket tracker]. You can do this in the top gramps directory as follows:
<code> svn diff > mychanges.patch</code>
A developer can apply this patch then with the command:
 <code> patch -p0 < mychanges.patch</code>
== Unstable development: "trunk" ==
There are several versions of the gramps code in SVN.
The development branch for small changes and bug fixes is ''gramps{{stable_branch}}gramps41'' and ''trunk'' has been created for the ongoing unstable version.
If this talk of ''branch'' and ''trunk'' sounds confusing you might like to read the list message [http://sourceforge.net/mailarchive/message.php?msg_id=19238907 explaining branch and trunk].
To checkout a copy of the possibly unstable trunk to ./trunk:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/trunk trunk</nowiki></code>
To checkout a copy of the last branch Gramps 4.0 ./gramps40:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps40 gramps40</nowiki></code>
To checkout a copy of the last branch Gramps 3.4 ./gramps34:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps34 gramps34</nowiki></code>
To checkout a copy of the last branch Gramps 3.3 ./gramps33:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps33 gramps33</nowiki></code>
To checkout a copy of the last branch Gramps 3.2 ./gramps32:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps32 gramps32</nowiki></code>
To checkout a copy of the last branch Gramps 3.1 ./gramps31:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps31 gramps31</nowiki></code>
To checkout a copy of the older stable Gramps 3.0 ./gramps30:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps30 gramps30</nowiki></code>
To checkout a copy of the older stable Gramps 2.2 ./gramps22:
 <code> svn co <nowiki>https://svn.code.sf.net/p/gramps/code/branches/maintenance/gramps22 gramps22</nowiki></code>
=== Prepare gramps40 and trunk ===
2,160
edits

Navigation menu