Differences between revisions 12 and 19 (spanning 7 versions)
Revision 12 as of 2008-09-14 13:12:27
Size: 1367
Editor: abuehl
Comment: +graph
Revision 19 as of 2013-08-27 13:53:32
Size: 1890
Editor: AugieFackler
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
A '''head''' is a [:ChangeSet:changeset] with no child changesets. The [:Tip:tip] is the most recently changed head. Other heads are recent [:Pull:pulls] into a [:Repository:repository] that have not yet been [:Merge:merged]. A '''head''' is a [[ChangeSet|changeset]] with no child changesets. The [[Tip|tip]] is the most recently changed head. Other heads are recent [[Pull|pulls]] into a [[Repository|repository]] that have not yet been [[Merge|merged]].
Line 11: Line 11:
   rev0 [shape=record, label="{{<p1> p1 | <p2> p2} | rev 0:838e}"];
   rev1 [shape=record, label="{{<p1> p1 | <p2> p2} | rev 1:34ef}"];
   rev2 [shape=record, label="{{<p1> p1 | <p2> p2} | rev 2:4563}", color=red];
   rev3 [shape=record, label="{{<p1> p1 | <p2> p2} | rev 3:fe56 (tip)}", color=red];
   workingdir [shape=record, label="{{<p1> p1 | <p2> p2} | working directory}"];
   rev0 [label="{{<p1> p1 | <p2> p2} | rev 0:838e}"];
   rev1 [label="{{<p1> p1 | <p2> p2} | rev 1:34ef}"];
   rev2 [label="{{<p1> p1 | <p2> p2} | rev 2:4563}", color=red];
   rev3 [label="{{<p1> p1 | <p2> p2} | rev 3:fe56 (tip)}", color=red];
   workingdir [label="{{<p1> p1 | <p2> p2} | working directory}"];
Line 20: Line 20:
   label="sample repo with two heads (rev2 and rev3)"    label = "sample repo with two heads (rev2 and rev3)"
Line 24: Line 24:
If you have just made a [:Commit:commit], that commit will be If you have just made a commit, that commit will be
Line 28: Line 28:
Mercurial supports [:MultipleHeads:multiple heads] concurrently within a single repository. Mercurial supports [[MultipleHeads|multiple heads]] concurrently within a single repository.
Line 32: Line 32:
See also: [:Branch], [:WorkingDirectory] See also: [[Branch]], [[WorkingDirectory]]

=== Definitions ===
''(from http://selenic.com/pipermail/mercurial-devel/2009-June/013030.html)''

 head:: a changeset that has no children

 branch:: the set of all changesets with the same branch name

 branch head:: a changeset in a branch that has no children in that branch (not the same as head!)

 active branch head:: a branch head that is also a head

 inactive branch head:: a branch head that has a child not in the same branch

 closed branch head:: a branch head with a closed marker

 closed branch:: a branch with only closed heads
Line 36: Line 53:

[[FrenchHead|Français]]

Head

hg heads [-r REV] [REV]...

A head is a changeset with no child changesets. The tip is the most recently changed head. Other heads are recent pulls into a repository that have not yet been merged.

If you have just made a commit, that commit will be the tip. Alternately, if you have just pulled from another repository, the tip of that repository becomes the current tip.

Mercurial supports multiple heads concurrently within a single repository.

Help text: http://www.selenic.com/mercurial/hg.1.html#heads

See also: Branch, WorkingDirectory

Definitions

(from http://selenic.com/pipermail/mercurial-devel/2009-June/013030.html)

head
a changeset that has no children
branch
the set of all changesets with the same branch name
branch head
a changeset in a branch that has no children in that branch (not the same as head!)
active branch head
a branch head that is also a head
inactive branch head
a branch head that has a child not in the same branch
closed branch head
a branch head with a closed marker
closed branch
a branch with only closed heads


CategoryCommand CategoryGlossary

Français

Head (last edited 2013-08-27 13:53:32 by AugieFackler)