max
max

Reputation: 52263

Which head is marked as tip?

The documentation says:

The tip tag is a special “floating” tag, which always identifies the newest revision in the repository.

What is meant by the "newest"? Is it the one with the highest UTC time? Or the one most recently added to the local repository (i.e., the one with the highest local revision number)?

It seems from my experimentation that it's the latter. If it's true, what's the rationale of this choice?

Version 1.9.3 if it matters.

Upvotes: 1

Views: 72

Answers (3)

Mark
Mark

Reputation: 462

tip is the highest local revision which could be on a branch. hg update will update to the tip of the current named branch. So if default or a named branch has the absolute tip of the repository but you are not set to use that branch you will get the latest on what you are set to use. hg summary tells you what your current branch is.

Upvotes: 0

Ringding
Ringding

Reputation: 2856

Note that when you use MQ, a qrefresh causes the refreshed changeset to be removed and re-added, so it automatically becomes tip.

Upvotes: 0

Lazy Badger
Lazy Badger

Reputation: 97282

Highest local revision number, yes

Because it's (logically) most recent changeset

Upvotes: 3

Related Questions