bzr revno always an integer?
Chris Hecker
checker at d6.com
Sat May 21 08:39:27 UTC 2011
> You can't necessarily assume monotonic increase though, unless it
> only moves via commit, because of the various ways the history shape
> can change over pushes and pulls.
Hmm, can you give me an example? I'm still trying to wrap my head
around this stuff.
Thanks,
Chris
On 2011/05/21 01:37, Matthew D. Fuller wrote:
> On Sat, May 21, 2011 at 01:34:05AM -0700 I heard the voice of
> Chris Hecker, and lo! it spake thus:
>>
>> Will `bzr revno` always return a simple integer, or can it be
>> nnnn.n.n? In logs with merges and whatnot the other levels can have
>> .'s in them, but can the current revision ever look like that?
>>
>> I know the revno's won't match up between different branches, but on
>> a single branch with pushes and pulls and merges it will still
>> monotonically increment locally (assuming no update -r or anything),
>> or am I misunderstanding?
>
> Plain 'revno' is the revno for the head of the branch, which by
> definition will always be integral. 'revno --tree' though may not be.
>
> You can't necessarily assume monotonic increase though, unless it only
> moves via commit, because of the various ways the history shape can
> change over pushes and pulls.
>
>
More information about the bazaar
mailing list