jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Hahn <stefanhah...@googlemail.com>
Subject Re: Version Numbering
Date Wed, 21 Sep 2011 09:34:17 GMT
Thank you for the quick answer. I didn't know about [1], it does make sense.

About version labels:
Did I understand it correctly that a label has to be unique in the whole
repository?
So I can't label a version of doc1 as "FINAL" and a different version of
doc2 also as "FINAL"?


2011/9/21 Jukka Zitting <jukka.zitting@gmail.com>

> Hi,
>
> On Wed, Sep 21, 2011 at 9:04 AM, Stefan Hahn
> <stefanhahn80@googlemail.com> wrote:
> > What is the system Jackrabbit uses for creating version numbers?
>
> Version numbers are assigned automatically according to the algorithm
> described in [1].
>
> > Can i modify these numbers? I would like to create version 2.0 at some
> > point.
>
> You can't. The version numbers in Jackrabbit are much like revision
> numbers in Subversion or commit hashes in Git, i.e. they are generated
> internally by the system and can't be changed afterwards.
>
> What you should use instead is the version label feature [2] that you
> can use to attach arbitrary labels to the versions you create.
>
> [1] http://s.apache.org/calculateCheckinVersionName
> [2] http://www.day.com/specs/jcr/2.0/15_Versioning.html#15.4 Version
> Labels
>
> BR,
>
> Jukka Zitting
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message