Difference between revisions of "WormBase Source Code"

From WormBaseWiki
Jump to navigationJump to search
Line 3: Line 3:
 
  http://bitbucket.org/tharris/wormbase/
 
  http://bitbucket.org/tharris/wormbase/
  
===Get Mercurial===
+
=Available Repositories==
 +
 
 +
http://bitbucket.org/tharris/wormbase - ''The WormBase web application (public)''
 +
http://bitbucket.org/tharris/wormbase-admin - ''Administration code (private)''
 +
 
 +
==Get Mercurial==
  
 
http://www.selenic.com/mercurial/wiki/
 
http://www.selenic.com/mercurial/wiki/
  
===Set up your environment===
+
==Set up your environment==
  
 
Minimally, create a file at ~/.hgrc containing:
 
Minimally, create a file at ~/.hgrc containing:
Line 14: Line 19:
 
  username=First Last <email@example.net>
 
  username=First Last <email@example.net>
  
===Checking out the code===
+
==Checking out the code==
  
 
The following examples all use Mercurial over http.  You can also use [http://bitbucket.org/help/using-ssh/ mercurial over ssh].
 
The following examples all use Mercurial over http.  You can also use [http://bitbucket.org/help/using-ssh/ mercurial over ssh].
Line 21: Line 26:
 
  $ hg clone http://bitbucket.org/tharris/wormbase/
 
  $ hg clone http://bitbucket.org/tharris/wormbase/
  
===Pulling in Changes and Updates===
+
==Pulling in Changes and Updates==
  
 
  $ hg pull -u  
 
  $ hg pull -u  
  
===Pushing Changes to the Repository===
+
==Pushing Changes to the Repository==
  
 
  $ hg push  
 
  $ hg push  
  
=== Reference: Migrating to Mercurial ===
+
== Reference: Migrating to Mercurial ==
  
 
After creating the repository on BitBucket, I cloned it and populated with a exported version of source from SVN.
 
After creating the repository on BitBucket, I cloned it and populated with a exported version of source from SVN.

Revision as of 22:15, 16 April 2009

The WormBase source code is maintained using the distributed SCM system Mercurial. We use BitBucket.org as a convenient place to host the code and track issues:

http://bitbucket.org/tharris/wormbase/

Available Repositories=

http://bitbucket.org/tharris/wormbase - The WormBase web application (public) http://bitbucket.org/tharris/wormbase-admin - Administration code (private)

Get Mercurial

http://www.selenic.com/mercurial/wiki/

Set up your environment

Minimally, create a file at ~/.hgrc containing:

[ui]
username=First Last <email@example.net>

Checking out the code

The following examples all use Mercurial over http. You can also use mercurial over ssh.

cd ~/projects
$ hg clone http://bitbucket.org/tharris/wormbase/

Pulling in Changes and Updates

$ hg pull -u 

Pushing Changes to the Repository

$ hg push 

Reference: Migrating to Mercurial

After creating the repository on BitBucket, I cloned it and populated with a exported version of source from SVN.

$ hg clone http://bitbucket.org/harris/wormbase
$ mv ~/wormbase.svn/* wormbase/.

# Add and commit the files
$ hg add
$ hg commit -m 'Initial import of my old svn repository'

# Push the changes back to BitBucket
$ hg push