From c572207c2a66ab33df1b9e234767e3b165b6eaa9 Mon Sep 17 00:00:00 2001 From: inga-lovinde <52715130+inga-lovinde@users.noreply.github.com> Date: Fri, 11 Jun 2010 13:16:42 +0000 Subject: [PATCH] Fixed retrieval of current svn revision in builder --- Builder/IISMainHandler/build.txt | 2 +- Builder/Program.cs | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/Builder/IISMainHandler/build.txt b/Builder/IISMainHandler/build.txt index c9c4108..8bc6583 100644 --- a/Builder/IISMainHandler/build.txt +++ b/Builder/IISMainHandler/build.txt @@ -1 +1 @@ -114 \ No newline at end of file +120 \ No newline at end of file diff --git a/Builder/Program.cs b/Builder/Program.cs index adc9f1a..60dc462 100644 --- a/Builder/Program.cs +++ b/Builder/Program.cs @@ -64,10 +64,15 @@ namespace Builder { } int revNumber; - ProcessStartInfo svnInfo = new ProcessStartInfo(SVNPATH + "svn", "info --xml"); + ProcessStartInfo svnInfo = new ProcessStartInfo(SVNPATH + "svn"); svnInfo.WorkingDirectory = (new DirectoryInfo(".")).Parent.FullName; svnInfo.UseShellExecute = false; svnInfo.RedirectStandardOutput = true; + svnInfo.Arguments = "up --depth=empty"; + using(Process svn = Process.Start(svnInfo)) { + svn.WaitForExit(); + } + svnInfo.Arguments = "info --xml"; using(Process svn = Process.Start(svnInfo)) { svn.WaitForExit(); XmlDocument document = new XmlDocument();