Perhaps I do not have enough nuances. Someone can fix me.
The documentation on the Mercurial wiki page contains the following information about bare repositories:
"Although this is a small problem, Mercurial can obviously handle an open repository, that is, a repository without a working copy. In Git, you need a configuration parameter, whereas in Hg you only need to check the zero revision, for example:"
hg update null
Zero revision is the empty state that you have when you just finished hg init . This is the parent element of revision 0 (and the second parent code of all changes without merging), and by updating it back, you will again get an empty working copy.
The link may look ironic:
pyfunc Nov 11 '10 at 20:21 2010-11-11 20:21
source share