Getting revision numbers from a centralized repository
Adrian Buehlmann
adrian at cadifra.com
Wed Jun 2 13:12:55 UTC 2010
On 02.06.2010 14:53, cowwoc wrote:
> On 02/06/2010 8:47 AM, Dirkjan Ochtman wrote:
>> On Wed, Jun 2, 2010 at 14:46, cowwoc<cowwoc at bbs.darktech.org> wrote:
>>
>>> Some background about this: I realize that Hg encourages the use of
>>> hexadecimal change-sets, but posting "fixed in changeset<40 character
>>> sequence>" is not very nice. I'd like QA and developers to pass version
>>> numbers between one another using the shorter, easier-to-remember, revision
>>> numbers.
>>>
>>> Any ideas?
>>>
>> Use the 12-character version of the hex sequence. Or a 6-character
>> version (if your repo is not too big).
>>
>> Cheers,
>>
>> Dirkjan
>>
>
> Where do I read up (and see samples of) the different kinds of
> version numbers? Specifically, I'm curious about the 6-character version
> you mentioned. Is this a truncated change-set number or a revision number?
>
> PS: Ideally I'm aiming for a 1-4 digit version number.
>
http://www.selenic.com/mercurial/hg.1.html#specifying-single-revisions
Read carefully (quoting):
"A 40-digit hexadecimal string is treated as a unique revision identifier.
A hexadecimal string less than 40 characters long is treated as a unique
revision identifier and is referred to as a short-form identifier. A
short-form identifier is only valid if it is the prefix of exactly one
full-length identifier."
And there's http://mercurial.selenic.com/wiki/ChangeSetID on the wiki.
More information about the Mercurial
mailing list