Differences between revisions 9 and 14 (spanning 5 versions)
Revision 9 as of 2009-05-19 19:30:59
Size: 1021
Editor: localhost
Comment: converted to 1.6 markup
Revision 14 as of 2013-08-30 06:13:09
Size: 1227
Editor: rcl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 5: Line 5:
It is a strictly local ''convenience identifier'' for a [[Revision|revision]]. It can be useful as it is shorter to type than the 40-digit hexadecimal string that uniquely identifies a revision. It is a strictly __local__ ''convenience identifier'' for a [[Revision|revision]]. It can be useful as it is shorter to type than the 40-digit hexadecimal string that uniquely identifies a revision.
Line 14: Line 14:

=== More information ===

The Mercurial command-line client provides much more detailed information on Revision Sets. Just run:

{{{
$ hg help revsets
}}}
Line 30: Line 38:

[[FrenchRevisionNumber|Français]]

Revision number

A revision number is a small integer.

It is a strictly local convenience identifier for a revision. It can be useful as it is shorter to type than the 40-digit hexadecimal string that uniquely identifies a revision.

Common usage

Although all files have revision numbers, revision numbers are almost always used to identify a changeset within a given repository.

Pitfalls

Revision numbers referring to changesets are very likely to be different in another copy of a repository. Do not use them to talk about changesets with other people. Use the changeset ID instead.

More information

The Mercurial command-line client provides much more detailed information on Revision Sets. Just run:

$ hg help revsets

Notes

An empty repository (with no changesets) has a revision number -1, which corresponds to the nullid nodeid. For example:

$ hg log
$ hg status
$ hg head
changeset:   -1:000000000000
tag:         tip
user:
date:        Thu Jan 01 00:00:00 1970 +0000


CategoryGlossary

Français

RevisionNumber (last edited 2013-08-30 06:13:09 by rcl)