
Hg clone : Clone the repository found at to. Hg merge : Merge the specified change-set with the current working directory. Where can be given as an IP address or HTTP web address.
SIMPLE HG SERVER IP PC
Hg push : Send new change-sets from your PC to another. Hg pull : Retrieve new change-sets from another PC. “hg diff -rev ” can be used to view the difference of only the file specified. Hg diff -rev : Display all differences between files in the working directory and the revision specified. The command can be shortened to “hg up ” or “hg up” respectively. Running just “hg update” will revert to the latest revision.
SIMPLE HG SERVER IP UPDATE
Hg update : Revert the working directory to the state of the revision specified. Hg log: Display a log of revisions for the repository. Hg commit -m “ ” -u “ ”: Save the current state of the working directory as a revision.

Hg status: List the current status of all files in the repository. Running only “hg add” will add all files in the working directory that are not already tracked. Hg add : Add the specified file to the repository and track it’s changes. Hg init: Create a new repository in the current directory. “highlight” adds syntax highlighting to the “hg diff” command.Īn example hgrc file for the ARM-camp repository: “graphlog” adds an extra command: “hg gl”, this allows us to display a tree of change-sets within the command line. The “color” extension adds colour to certain Mercurial commands in the command line to allow for easier reading. TortoiseHg will automatically push after every commitment you make. Then we no longer need to specify the -u argument when using hg commit. We can add some things to this to speed things up. This file contains settings specific to the repository. hg folder of every repository, there is a “hgrc” file. Here you can see I added the line “Owl says hi!” followed by an empty line. We can use hg diff as before to find changed files. Using hg update with no arguments will update to the newest change-set. After using the pull command, we must update our working directory using hg update. Use this command to synchronize your local repository before beginning work. The “hg pull” command fetches new change-sets and files from a remote user.

Now if you look here:“” you should see that your file is now in the remote repository. Let’s add a file to our repository, make a commitment and push to the Xdevs server. Now we have a repository set up which will allow us to test push (and pull) commands.

Next we’ll clone the ARM-camp repository here at Xdevs.Īs you can see, the clone command fetches all change-sets and files from the given path. This will also destroy our Mercurial repository. Mercurial is a free Python based DVCS available for Windows, Linux and OSX platforms.įirst, let’s delete the contents of C:\repo. A DVCS is decentralized and means that you do not need to rely on a central server to save revisions, unlike a CVCS (Centralized VCS). It allows you to save sets of changes made to these files and revert to previous versions whenever needed, much like saving a game.
SIMPLE HG SERVER IP SOFTWARE
Back to index Mercurial – DVCS (Decentralized Version Control System) – intro and basic usage guide (D)VCSĪ version control system ( VCS) is a piece of software that tracks changes made to specified files.
