Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to Zero Pad Revision / Build Number [Patch Included] #7

Open
GoogleCodeExporter opened this issue Apr 21, 2015 · 0 comments
Open

Comments

@GoogleCodeExporter
Copy link

We recently encountered a slight issue: Our repository revision number
ticked over to an additional digit (Eg. 99 -> 100). As part of our build
process we tag every successful build in SVN. However as the revision and
build are not zero padded they are not text-sortable (Eg. 1.5.99.1 is
sorted after 1.5.100.0 in a directory listing).

As such I've modified the svnrevisionlabeller to allow zero padding both
the revision and build numbers (the major and minor numbers do not need
zero padding by the plugin as they're incremented by the user in the config
file).

With this patch two new config items are available; "zeroPadDigitsRevision"
and "zeroPadDigitsbuild". Both of these are integers and specify the number
of 0 digits to pad the revision / build with.

If I set zeroPadDigitsRevision = 5 and zeroPadDigitsBuild = 2, the two
labels I used earlier would become 1.5.00099.01 and 1.5.00100.00
respectively which is text-sortable.

Attached is a patch against the current head (2009-01-06) which implements
this feature.

I apologise if this isn't the right forum for this, but I was unable to
find any other way to contact the developers.

Original issue reported on code.google.com by [email protected] on 5 Jan 2009 at 11:35

Attachments:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant