Permalink
Browse files

[Build] Set revision to 0 outside source control

This ensures that properly built packages take precedence to incorrectly
built packages.
  • Loading branch information...
thefiddler committed Mar 18, 2014
1 parent db913ca commit a24e1edeae6dd2f71a39b59584ffc29efe874aca
Showing with 1 addition and 1 deletion.
  1. +1 −1 Source/Build.UpdateVersion/Program.cs
@@ -114,7 +114,7 @@ static void GenerateAssemblyInfo(string major, string minor, string version, str
static string RetrieveRevisionNumber(DateTime now)
{
double timespan = now.Subtract(new DateTime(2010, 1, 1)).TotalDays;
- string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? RetrieveSeconds(timespan);
+ string revision = RetrieveGitRevision() ?? RetrieveSvnRevision() ?? RetrieveBzrRevision() ?? "0";
revision = revision.Trim();
return revision;
}

0 comments on commit a24e1ed

Please sign in to comment.