Differences between revisions 5 and 11 (spanning 6 versions)
Revision 5 as of 2008-01-06 13:53:26
Size: 880
Editor: abuehl
Comment: “the changeset I’m about to commit” (stolen from hgbook)
Revision 11 as of 2008-01-13 23:11:48
Size: 1110
Editor: abuehl
Comment: extracted "Working Directory State" to new page DirState
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
The '''working directory''' is the top-level directory in a ["Repository"], in which the plain versions of files are available to read, edit and build. Files in the working directory are usually from the ["Tip"], but may be from older revisions, or modified and not yet ["Commit"]ted. The '''working directory''' is the top-level directory in a [:Repository:repository], in which the plain versions of files are available to read, edit and build. Files in the working directory are usually from the [:Tip:tip], but may be from older [:Revision:revisions], or modified and not yet [:Commit:committed].
Line 5: Line 5:
A working directory has one or two ["Parent"] ["Revision"]s. The parent revision or revisions will become
the parent revisions of the new revision which will eventually be created by a ["Commit"]
of the ["LocalModifications"].
An ["Update"] will change the parent revision, whereas a ["Revert"] will only modify
the content of the working directory.
A working directory has one or two [:Parent:parent] revisions. The parent revision or revisions will become the parent revisions of the new revision which will eventually be created by a commit of the [:LocalModifications:local modifications]. An [:Update:update] will change the parent revision, whereas a [:Revert:revert] will only modify the content of the working directory.
Line 11: Line 7:
A working directory will only have two parent revisions as the result of a ["Merge"]. A working directory will only have two parent revisions as the result of a [:Merge:merge].
Line 13: Line 9:
It’s useful to think of the working directory as "the ChangeSet I’m about to commit". A [:NamedBranches:branch name] can be set for the working directory.

It’s useful to think of the working directory as "the [:ChangeSet:changeset] I’m about to commit".

Mercurial tracks various information about the working directory (see DirState).

Working directory

The working directory is the top-level directory in a [:Repository:repository], in which the plain versions of files are available to read, edit and build. Files in the working directory are usually from the [:Tip:tip], but may be from older [:Revision:revisions], or modified and not yet [:Commit:committed].

A working directory has one or two [:Parent:parent] revisions. The parent revision or revisions will become the parent revisions of the new revision which will eventually be created by a commit of the [:LocalModifications:local modifications]. An [:Update:update] will change the parent revision, whereas a [:Revert:revert] will only modify the content of the working directory.

A working directory will only have two parent revisions as the result of a [:Merge:merge].

A [:NamedBranches:branch name] can be set for the working directory.

It’s useful to think of the working directory as "the [:ChangeSet:changeset] I’m about to commit".

Mercurial tracks various information about the working directory (see DirState).


CategoryGlossary

WorkingDirectory (last edited 2012-11-06 16:23:25 by abuehl)