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