Difference between revisions of "ApCoCoA-1:SourceCodeManagement"

From ApCoCoAWiki
(adding to category apcocoalib)
m (page moved)
 
(3 intermediate revisions by 3 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, the [http://www.selenic.com/mercurial-stable-snapshot.tar.gz latest stable snapshot] or a [http://www.selenic.com/mercurial/wiki/index.cgi/BinaryPackages binary package] for your system. In order to install from the source, 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.
+
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]]
 +
 
 +
==Composition of the svn-repository==
 +
 
 +
The complete ApCoCoA-repository contains two subrepositories, one for ApCoCoALib and one for ApCoCoAPackages:
 +
 
 +
<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==
 
==Checking out sources==
  
To check out the current ApCoCoALib sources run
+
* 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.
hg clone http://apcocoa.org/hg/ApCoCoALib-0.99
+
* 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.
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==
 
==Updating the sources==
  
To update your ApCoCoALib sources, run
+
To update your ApCoCoA sources, run
  hg pull
+
 
  hg update
+
<pre>
in your local repository from the command line
+
~/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.
  
==Mercurial Tutorial==
+
==Subversion Help==
  
*[http://www.selenic.com/mercurial/wiki/index.cgi/UnderstandingMercurial Understanding Mercurial]
+
* [http://subversion.tigris.org/ www.subversion.tigris.org]
*[http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial Tutorial]
+
* [http://svnbook.red-bean.com/ www.svnbook.red-bean.com]
*[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|{{PAGENAME}}]]
 
[[Category:ApCoCoA|{{PAGENAME}}]]
  
 
[[Category:ApCoCoALib|{{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