Questions tagged [versioning]

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.

Software versioning is the process of assigning either unique version names or unique version numbers to unique states of computer software. Within a given version number category (major, minor), these numbers are generally assigned in increasing order and correspond to new developments in the software.

The following are some popular versioning software used:

  1. Git
  2. Subversion (SVN)
  3. Microsoft TFS
3122 questions
114
votes
11 answers

How to version REST URIs

What is the best way to version REST URIs? Currently we have a version # in the URI itself, ie. http://example.com/users/v4/1234/ for version 4 of this representation. Does the version belong in the queryString? …
Mike Pone
  • 18,705
  • 13
  • 53
  • 68
107
votes
4 answers

ASP.NET MVC security patch to version 3.0.0.1 breaks build

After installing the ASP.NET MVC 3 security update KB2990942 it appears the MVC version increased from 3.0.0.0 to 3.0.0.1. This causes Visual Studio to no longer find the reference.
usr
  • 168,620
  • 35
  • 240
  • 369
101
votes
7 answers

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

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?
Zack Peterson
  • 56,055
  • 78
  • 209
  • 280
100
votes
5 answers

How to manage the version number in Git?

Let's imagine the blerp command line tool maintained on git. This tool has the (hidden) --version option which returns its version (let's say 0.1.2) and another --commit which returns the commit number from which it was built. Both the version and…
nowox
  • 25,978
  • 39
  • 143
  • 293
97
votes
3 answers

Move tag one commit ahead

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…
Gabriel
  • 40,504
  • 73
  • 230
  • 404
92
votes
8 answers

Line history viewer - Git

I wondered if any of you knew of a tool that would allow me to select a line in my code and then view a list view of the history of that line on a commit-by-commit basis. Does anyone know of such a tool?
David.LPower
  • 1,083
  • 2
  • 10
  • 14
86
votes
1 answer

What does M1 mean in a maven repository?

I've been using maven for a while, and I often review repositories before selected what version I want to use. I don't entirely understand what the extensions mean. I know that when I see extensions like -RC1 and -RC2 that means release candidates.…
Fred Haslam
  • 8,873
  • 5
  • 31
  • 31
82
votes
5 answers

Execute Maven plugin goal on parent module, but not on children

We have a multi-module maven project that uses a profile that defines a buildnumber-maven-plugin to increment a build number and then check it into source control. If I define the plugin in the parent pom.xml it executes for all the child builds as…
Dougnukem
  • 14,709
  • 24
  • 89
  • 130
80
votes
15 answers

How to "unversion" a file in either svn and/or git

It happens to me all the time. I accidentally version a file, I do not want to be versioned (i.e. developer/machine specific config-files). If I commit this file, I will mess up the paths on all the other developer machines - they will be…
Mo.
  • 15,033
  • 14
  • 47
  • 57
77
votes
2 answers

Maven versioning best practices

What is the best way to change version of Maven project, to release this version and then return back to *-SNAPSHOT development. Currently I'm doing following: retrieve current version (most likely with SNAPSHOT) from pom.xml increment version (mvn…
shabunc
  • 23,119
  • 19
  • 77
  • 102
75
votes
3 answers

How do you use multiple versions of the same R package?

In order to be able to compare two versions of a package, I need to able to choose which version of the package that I load. R's package system is set to by default to overwrite existing packages, so that you always have the latest version. How do…
Richie Cotton
  • 118,240
  • 47
  • 247
  • 360
74
votes
7 answers

Git and the Umlaut problem on Mac OS X

Today I discovered a bug for Git on Mac OS X. For example, I will commit a file with the name überschrift.txt with the German special character Ü at the beginning. From the command git status I get following output. Users-iMac: user$ git status On…
0xPixelfrost
  • 10,244
  • 5
  • 39
  • 58
74
votes
2 answers

What are the best practices for versioning XML schemas?

I often have to design XML schemas for different XML-bases import routines. It is clear that XML schemas will evolve over time or they could contain bugs to be fixed, so it is important to capture the schema's version and to have some mechanism to…
Regent
  • 5,502
  • 3
  • 33
  • 59
73
votes
6 answers

Gradle script to autoversion and include the commit hash in Android

I need to write a gradle script to auto version my application on every commit. I need to also include the commit hash as a reference in the application for testers. I am confused how auto versioning usually work. Can someone explain the…
Shatazone
  • 2,422
  • 6
  • 28
  • 38
61
votes
12 answers

How to allow users to check for the latest app version from inside the app?

I want to add a "Check for update" button in apps so that when someone clicks it, it will display a toast message / progress dialog for checking the app's version. If new version is found the apps will auto download it to the phone and let user to …
xDragonZ
  • 12,502
  • 6
  • 37
  • 52