# HG changeset patch # User Bryan O'Sullivan # Date 1241407629 25200 # Node ID a17d6390a48052b4360edca53a98978b4c660fef # Parent d7d09cda83d27b119f336fd23041487e39a4943e More fixes to chapters 1 and 2. diff -r d7d09cda83d2 -r a17d6390a480 en/ch01-tour-basic.xml --- a/en/ch01-tour-basic.xml Sun May 03 19:23:31 2009 -0700 +++ b/en/ch01-tour-basic.xml Sun May 03 20:27:09 2009 -0700 @@ -867,9 +867,7 @@ linkend="sec:tour:pull"/> when we ran it without , you can see that it printed a helpful reminder that we'd have to take an explicit step to - update the working directory: - - + update the working directory. To find out what revision the working directory is at, use the hg parents @@ -990,6 +988,44 @@ &interaction.tour.push.net; + + + Starting a new project + + It is just as easy to begin a new project as to work on one + that already exists. The hg init command + creates a new, empty Mercurial repository. + + &interaction.ch01-new.init; + + This simply creates a repository named + myproject in the current directory. + + &interaction.ch01-new.ls; + + We can tell that myproject is a + Mercurial repository, because it contains a + .hg directory. + + &interaction.ch01-new.ls2; + + If we want to add some pre-existing files to the repository, + we copy them into place, and tell Mercurial to start tracking + them using the hg add command. + + &interaction.ch01-new.add; + + Once we are satisfied that our project looks right, we + commit our changes. + + &interaction.ch01-new.commit; + + It takes just a few moments to start using Mercurial on a + new project, which is part of its appeal. Revision control is + now so easy to work with, we can use it on the smallest of + projects that we might not have considered with a more + complicated tool. +