Differences between revisions 12 and 18 (spanning 6 versions)
Revision 12 as of 2008-09-14 13:12:27
Size: 1367
Editor: abuehl
Comment: +graph
Revision 18 as of 2013-08-27 11:49:49
Size: 315
Editor: WYOKelvin
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
== Head ==

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

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].

{{{#!dot
digraph {
   rankdir = LR
   node [shape=record]
   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 -> rev1:p1 [dir=back, label="parent"]
   rev1 -> rev2:p1 [dir=back]
   rev1 -> rev3:p1 [dir=back]
   rev3 -> workingdir:p1 [dir=back]
   label="sample repo with two heads (rev2 and rev3)"
}
}}}

If you have just made a [:Commit: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 [:MultipleHeads:multiple heads] concurrently within a single repository.

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

See also: [:Branch], [:WorkingDirectory]

----
CategoryCommand CategoryGlossary
They call the author Rickey and he totally likes this name. Invoicing is how he supports his family. Modelling trains is anything his spouse doesn't love but he does. His home is now in Nevada and he has everything that he demands there. Go to his website to find out more: http://ynukorea.org/?document_srl=23781

They call the author Rickey and he totally likes this name. Invoicing is how he supports his family. Modelling trains is anything his spouse doesn't love but he does. His home is now in Nevada and he has everything that he demands there. Go to his website to find out more: http://ynukorea.org/?document_srl=23781

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