Tuesday Jul 29, 2008

Using Mercurial during the development process

With guidance from Anurag, I've been trying to figure out how the NWAM development process changes with the advent of Mercurial as the source code management tool for OpenSolaris. I've tried to detail the process I'm using here in case it's of use to others. The basic idea is to have a development repository in which we make changes (and will eventually push to the main NWAM repository on opensolaris.org), along with a build repository, to which we pull our changes to build/test. Here are the steps:

  1. clone a development repository
    # hg clone ssh://anon@hg.opensolaris.org/hg/nwam/nwam1 /path2/dev_ws
    
  2. make changes by editing files
  3. commit these changes in the development repository
  4. # hg commit
    
  5. clone/pull the above development changes to a build/test repository
    # hg clone /path2/dev_ws /path2/build_ws
    
    To ensure latest changes are there:
    # cd /path2/build_ws
    # hg update
    
    Or if rather than cloning, you need to update an existing build repository:
    # cd /path2/build_ws
    # hg pull -u /path2/dev_ws
    
  6. clone usr/closed separately, adding it to build repository (external-to-Sun builds need to download the closed binaries at this point instead I believe).
    # cd /path2/build_ws/usr
    # hg clone ssh://elpaso.sfbay//export/clone-hg/usr/closed
    
  7. build/test
  8. push dev changes, replacing yourname with your opensolaris.org account name. SSH keys need to be set up with youro OpenSolaris account for this to work properly, and your account needs to be on the list of contributors.
  9. # cd /path2/dev_ws
    # hg push ssh://yourname@hg.opensolaris.org/hg/nwam/nwam1
    

About

user12820842

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today