Difference between revisions of "ApCoCoA-1:SourceCodeManagement"

From ApCoCoAWiki
(add ApCoCoA Category)
m (page moved)
 
(6 intermediate revisions by 5 users not shown)
Line 1: Line 1:
The ApCoCoALib sources are managed with Mercurial.
+
The ApCoCoALib sources are managed with subversion.
  
==Downloading And Installing Mercurial==
+
==Downloading and installing subversion==
  
Got to the [http://www.selenic.com/mercurial/wiki/index.cgi/Download Mercurial website] and get the stable source tarball or get the [http://www.selenic.com/mercurial-stable-snapshot.tar.gz latest stabe snapshot]. In order to install run
+
Go to the [http://subversion.tigris.org/ subversion website]. Then download and install the right version for your operating system.
python setup.py install
 
as root or via sudo.
 
  
==Checking out Sources==
+
If you work with Eclipse, you can also install the respective plug-ins, see the [[ApCoCoA-1:HowTo:Tips_for_developing_(Ap)CoCoA_with_Eclipse#Accessing_the_subversion_repository_from_Eclipse|Eclipse HowTo]]
To check out the current ApCoCoALib sources run
 
hg clone http://apcocoa.org/hg/ApCoCoALib-0.99
 
from the command line.
 
  
==Mercurial Tutorial==
+
==Composition of the svn-repository==
  
*[http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial Tutorial]
+
The complete ApCoCoA-repository contains two subrepositories, one for ApCoCoALib and one for ApCoCoAPackages:
*[http://www.selenic.com/mercurial/wiki/index.cgi/TutorialFirstChange Making the first change]
 
*[http://www.selenic.com/mercurial/wiki/index.cgi/TutorialShareChange Sharing changes]
 
*[http://www.selenic.com/mercurial/wiki/index.cgi/TutorialExport Sharing with another person]
 
*[http://www.selenic.com/mercurial/wiki/index.cgi/TutorialMerge Merging changes]
 
*[http://www.selenic.com/mercurial/wiki/index.cgi/TutorialConflict Merging conflicting changes]
 
  
[[Category:ApCoCoA]]
+
<pre>
 +
~$ cd repo
 +
~/repo$ ls
 +
ApCoCoALib  ApCoCoAPackages
 +
</pre>
 +
 
 +
Each of the subrepositories is subdivided into three directories:
 +
 
 +
<pre>
 +
~/repo$ cd ApCoCoALib/
 +
~/repo/ApCoCoALib$ ls
 +
branches  tags  trunk
 +
</pre>
 +
 
 +
In '''tags''' are all stable versions, i.e. at the moment ApCoCoA-1.0, and in '''trunk''' is the current version of the ApCoCoA sources:
 +
 
 +
<pre>
 +
~/repo/ApCoCoALib$ cd tags/
 +
~/repo/ApCoCoALib/tags$ ls
 +
release-1.0
 +
</pre>
 +
 
 +
==Checking out sources==
 +
 
 +
* To check out the '''complete repository''', i.e. the ApCoCoALib sources and the (Ap)CoCoA-packages, run<br /><pre>svn co svn://apcocoa.org/ <target directory></pre>or<br /><pre>svn co svn://apcocoa.fim.uni-passau.de/ <target directory></pre>from the command line.
 +
* To check out only the current '''ApCoCoALib''' sources run<br /><pre>svn co svn://apcocoa.org/ApCoCoALib <target directory></pre>or<br /><pre>svn co svn://apcocoa.fim.uni-passau.de/ApCoCoALib <target directory></pre>from the command line.
 +
* To check out only the current '''ApCoCoAPackages''' sources run<br /><pre>svn co svn://apcocoa.org/ApCoCoAPackages <target directory></pre>or<br /><pre>svn co svn://apcocoa.fim.uni-passau.de/ApCoCoAPackages <target directory></pre>from the command line.
 +
 
 +
==Updating the sources==
 +
 
 +
To update your ApCoCoA sources, run
 +
 
 +
<pre>
 +
~/repo$ svn update
 +
</pre>
 +
 
 +
in your local repository from the command line.
 +
 
 +
==The Mercurial repository==
 +
 
 +
The old mercurial repository will be kept alive but will be no longer supported and updated! Although if you prefer the mercurial repository you can look at the old [[ApCoCoA:SourceCodeManagement_Hg|sourcecode management page]] for working with mercurial.
 +
 
 +
==Subversion Help==
 +
 
 +
* [http://subversion.tigris.org/ www.subversion.tigris.org]
 +
* [http://svnbook.red-bean.com/ www.svnbook.red-bean.com]
 +
 
 +
[[Category:ApCoCoA|{{PAGENAME}}]]
 +
 
 +
[[Category:ApCoCoALib|{{PAGENAME}}]]

Latest revision as of 09:31, 29 October 2020

The ApCoCoALib sources are managed with subversion.

Downloading and installing subversion

Go to the subversion website. Then download and install the right version for your operating system.

If you work with Eclipse, you can also install the respective plug-ins, see the Eclipse HowTo

Composition of the svn-repository

The complete ApCoCoA-repository contains two subrepositories, one for ApCoCoALib and one for ApCoCoAPackages:

~$ cd repo
~/repo$ ls
ApCoCoALib  ApCoCoAPackages

Each of the subrepositories is subdivided into three directories:

~/repo$ cd ApCoCoALib/
~/repo/ApCoCoALib$ ls
branches  tags  trunk

In tags are all stable versions, i.e. at the moment ApCoCoA-1.0, and in trunk is the current version of the ApCoCoA sources:

~/repo/ApCoCoALib$ cd tags/
~/repo/ApCoCoALib/tags$ ls
release-1.0

Checking out sources

  • To check out the complete repository, i.e. the ApCoCoALib sources and the (Ap)CoCoA-packages, run
    svn co svn://apcocoa.org/ <target directory>
    or
    svn co svn://apcocoa.fim.uni-passau.de/ <target directory>
    from the command line.
  • To check out only the current ApCoCoALib sources run
    svn co svn://apcocoa.org/ApCoCoALib <target directory>
    or
    svn co svn://apcocoa.fim.uni-passau.de/ApCoCoALib <target directory>
    from the command line.
  • To check out only the current ApCoCoAPackages sources run
    svn co svn://apcocoa.org/ApCoCoAPackages <target directory>
    or
    svn co svn://apcocoa.fim.uni-passau.de/ApCoCoAPackages <target directory>
    from the command line.

Updating the sources

To update your ApCoCoA sources, run

~/repo$ svn update

in your local repository from the command line.

The Mercurial repository

The old mercurial repository will be kept alive but will be no longer supported and updated! Although if you prefer the mercurial repository you can look at the old sourcecode management page for working with mercurial.

Subversion Help