versioning

Deriving application build version from `git describe` - how to get a relatively straightforward string?

和自甴很熟 提交于 2019-11-27 11:43:37
UPDATE I see that this question has become somewhat popular. It's now years into my admittedly enjoyable Git use, and I have learned a lot since then. Please , pretty please read the last paragraph before going on about your Git adventures with whatever you will have learned from this Q&A. I want to compose application build version that is automatically derived from GIT branch name I am on (when building) and the number of commits since the branch has diverged. I believe this will be unique for any commit in my GIT repository? Branch names are unique, and commits are linked to each other

Assembly Versioning using CruiseControl.net

烂漫一生 提交于 2019-11-27 11:21:31
问题 I have setup CruiseControl.net for a bunch of my projects which are related. As a result a single project tag in CruiseControl has multiple SVN checkouts and then a bunch of msbuild tasks compile all the individual sln files. I need to update the assembly version of all the solutions when this build is being done. However, since i'm not using nant and not using MSBuild proj files, I am unsure on how to get this. I wonder if I'm missing something obvious. I just need a solution which can be

A regex for version number parsing

允我心安 提交于 2019-11-27 11:16:46
I have a version number of the following form: version.release.modification where version, release and modification are either a set of digits or the '*' wildcard character. Additionally, any of these numbers (and any preceding .) may be missing. So the following are valid and parse as: 1.23.456 = version 1, release 23, modification 456 1.23 = version 1, release 23, any modification 1.23.* = version 1, release 23, any modification 1.* = version 1, any release, any modification 1 = version 1, any release, any modification * = any version, any release, any modification But these are not valid: *

How do I sync the SVN revision number with my ASP.NET web site?

谁都会走 提交于 2019-11-27 11:16:19
Stack Overflow has a subversion version number at the bottom: svn revision: 679 I want to use such automatic versioning with my .NET Web Site/Application , Windows Forms, WPD projects/solutions. How do I implement this? saint_groceon Looks like Jeff is using CruiseControl.NET based on some leafing through the podcast transcripts. This seems to have automated deployment capabilities from source control to production. Might this be where the insertion is happening? Brad Wilson We do this with xUnit.net for our automated builds. We use CruiseControl.net (and are trying out TeamCity). The MSBuild

Java MongoDB Object Versioning

穿精又带淫゛_ 提交于 2019-11-27 10:59:38
问题 I need to do versioning on (simple) Java object graphs stored in a document-oriented database (MongoDB). For relational databases and Hibernate, I discovered Envers and am very amazed about the possibilities. Is there something similar that can be used with Spring Data Documents? I found this post outlining the thoughts I had (and more...) about storing the object versions, and my current implementation works similar in that it stores copies of the objects in a separate history collection

Move tag one commit ahead

[亡魂溺海] 提交于 2019-11-27 09:24:12
问题 I have a repository with only one branch ( master ). I'm the only contributor to my repo. I've recently added a tag , both locally and pushed to GitHub. After making what I though was the last necessary commit, but now I realize I should have made one more change/commit. So what I have is: commit 124 commit 125 commit 126 <-- tag v1.0 commit 127 and I want to move the v1.0 tag to the next commit, ie: 127 , both locally and in GitHub. How can I do that? 回答1: Have you ever been to a book club

Java versioning and terminology, 1.6 vs 6.0 OpenJDK vs Sun

我与影子孤独终老i 提交于 2019-11-27 08:50:48
I'm having problems understanding Java versioning. I'm seeing lots of versions like 1.4.2, 1.5 and 1.6, but I also stumble upon 5.0 and 6.0. I don't understand this versioning or the progression. I'm pretty new to Java, and I've read a bit about OpenJDK vs Sun, and I think I understand it. Are these versions the difference between OpenJDK and Sun? For example, OpenJDK's latest is 1.6 and Sun's is 6.0? All these versions are pretty confusing to someone new to Java. The versioning is simply a mess: Java 1.0 and 1.1 were normal Then came Java 1.2, but you were supposed to call it "Java 2, JDK 1.2

Database - Data Versioning [closed]

南笙酒味 提交于 2019-11-27 05:57:08
I've read a few questions on SO (such as this one ) in regards to versioning your data within a database. I liked some of the suggestions that were mentioned. I have for the longest time wanted (needed) to revision many of my tables but never got around to it. Being a programmer with only simple database work under my belt I was wondering how one would actually go about doing this. I'm not asking for the actual solution in SQL syntax. I can eventually figure that out for myself (or post SO when the time comes). I'm just asking for people to comment as how they would go about doing it and any

Best practices/guidance for maintaining assembly version numbers

久未见 提交于 2019-11-27 05:43:59
I'm looking for pointers, suggestions, and even dictation on how to manage the three different assembly version numbers for a .NET assembly. The Product version is the simplest, as this seems would normally be dictated by business. Then, the file version seems to be for versioning between deployments, where the actual assembly version is only used when shipping. Right now I'm just looking for a simple means of labeling test and maintenance releases of an assembly on which none depend, so I am looking at auto-incrementing build and revision numbers on the file version, and for final release,

Auto Version numbering your Android App using Git and Eclipse

▼魔方 西西 提交于 2019-11-27 05:20:11
问题 I believe that computers are the best things for doing repetitive tasks. I certainly am not, I either forget, or (mostly) don't do things in a consistent way - which isn't what I want. One of the things I am likely to do is forget to up the version information in the manifest when I publish a new version of an Android app. In the past I've worked with configured build systems that have a auto version numbering feature and I got use to it (or maybe I got lazy). I found this Stackoverflow post