doc/mercurial.txt
author Tom Henderson <tomh@tomh.org>
Fri, 18 May 2007 10:27:42 -0700
changeset 657 be551a3b07c6
parent 635 71b92dfe5f55
permissions -rw-r--r--
minor changes due to documentation review
     1 Introduction
     2 ------------
     3 
     4 ns-3 uses the Mercurial software revision control system which
     5 is a replacement for tools liks cvs or subversion. Thus, to get
     6 access to the development versions of ns-3, you need to install
     7 mercurial first. See http://www.selenic.com/mercurial/wiki/
     8 
     9 Mercurial cheat sheet
    10 ---------------------
    11 
    12 Look at our project history and source code:
    13 -------------------------------------------
    14 http://code.nsnam.org/ns-3-dev
    15 
    16 clone this repository:
    17 ---------------------
    18 hg clone http://code.nsnam.org/ns-3-dev
    19 
    20 commit locally:
    21 --------------
    22 hg status
    23 hg add <new files, if any>
    24 hg ci -m "message"
    25 
    26 pull development tree changes to your local repository:
    27 ------------------------------------------------------
    28 hg ci -m "my local changes are recorded"
    29 hg pull http://code.nsnam.org/ns-3-dev
    30 hg update (apply the changes)  OR
    31 hg merge (if you've made local changes)
    32 
    33 view the change log:
    34 -------------------
    35 hg log <file>
    36 
    37 push upwards (developers access only):
    38 --------------------------------------
    39 To the main repository:
    40 hg push ssh://code@code.nsnam.org/repos/ns-3-dev
    41 
    42 To your private repository:
    43 hg push ssh://username@code.nsnam.org//home/username/repositories/username/repository
    44 
    45