The first thing we'll do is isolate our experiment in a repository of its own.
What this means for now is that we're free to experiment with our repository, safe in the knowledge that it's a private “sandbox” that won't affect Mentioned, a cloned repository remembers the location of the repository it was cloned from, but Mercurial will not communicate with that repository, It contains its own private copy of a project's files and history. These files have the same contents and history in our repository as they do in the repository we cloned.Įvery Mercurial repository is complete, self-contained, and independent. hgrc file see below for details.ĭrwxr-xr-x 3 root root 4096 May 17 04:01 hello Use, the simplest and most robust way to set a username for yourself is by creating a. You should think of the HGUSER environment variable and the -u option as ways to override Mercurial's default selection of username. In this case, it will not let you commit until you set up a username. If all of these mechanisms fail, Mercurial will fail, printing an error message. Results in a username that is not very useful, it will print a warning if it has to do this. Mercurial will query your system to find out your local user name and host name, and construct a username from these components.If you have set the EMAIL environment variable, this will be used next.If you have set the HGUSER environment variable, this is checked next.If you specify a -u or -user option to Mercurial commands that need a username, this will be used with highest priority.Mercurial checks quite a few additional locations to determine what username to use. To see what the contents of this file should look like, refer to sec:tour-basic:username. With a username entry, that will be used next. The advised way for most users is through a file in your home directory called. Mercurial has a number of ways to determine your username. Your username if you wish to contribute yourself to a project that uses Mercurial. You can run quite a few commands without configuring anything. Mercurial requires very little configuration.