Ns-3 Mercurial Maintenance

Navigation: Main -> ns-3 real-time -> Ns-3 Mercurial Maintenance

the Mercurial Maintenance for NS-3 codes
1) Ask Sundeep Rangan if you need an invite for the current repository of NS-3 codes. ( a Dropbox shared folder ).Download a Dropbox software and keep it synced everytime after you have done some changes to the mounted Dropbox shared folder.

2) Initial Setup:

Suppose you mount the remote repository at /media/ns-3-dev, run the following command in your local working folder( such as home/workspace/ns-3-dev ):

//this will clone the remote repo in your

For the first time, you need to set your username.Add texts like following to the hgrc file: [path] default = /media/ns-3-dev [ui] username = Xunjie Yu  3) Mercurial is used so that multiple people can work on the repository simultaneously. Before uploading your changes, you first need to pull the changes from others into your local copy:

hg incoming /media/ns-3-dev // this will display the potential changesets // it will not affect your repository hg pull /media/ns-3-dev    // this will pull the changesets and place // them in your local "store". Note that you // working directory is not updated. Also, the new // version is in a new head of the store. hg merge            // do merge in case there are different branches hg update           // to make the pull and merge steps effective

4) Whenever you have done any changes to your local codes and want to update the log:

Firstly I recommend run  first so that the changes due to building will not affect the changelog, so that we can see more clearly the changes to the source files. Then run the following commands in your local folder: // enter some log info for this change and save the file

4) Push your changes to the remote repo: After you save the "commit" log file,you can push your changes to the remote repo through: Then go to the /media/ns-3-dev,and:  hg merge

5) Okay, now open the Dropbox and let the files get synced and shared!