summaryrefslogtreecommitdiff
path: root/build-scripts/winrtbuild.ps1
diff options
context:
space:
mode:
authorDavid Ludwig <dludwig@pobox.com>2015-12-02 07:58:23 -0500
committerDavid Ludwig <dludwig@pobox.com>2015-12-02 07:58:23 -0500
commite2fe805c7533b6fe9ba756c41f379745ab031d86 (patch)
tree73f6430e2db6528d81467cee38e6fcaa794f1c5c /build-scripts/winrtbuild.ps1
parent53ea13d6f39eaa850ea8f4ffaf0edb974f9c2199 (diff)
downloadsdl-e2fe805c7533b6fe9ba756c41f379745ab031d86.tar.gz
WinRT: allowed NuGet packaging code to get hg revision regardless of cwd
Diffstat (limited to 'build-scripts/winrtbuild.ps1')
-rw-r--r--build-scripts/winrtbuild.ps12
1 files changed, 1 insertions, 1 deletions
diff --git a/build-scripts/winrtbuild.ps1 b/build-scripts/winrtbuild.ps1
index a218b9d62..337780955 100644
--- a/build-scripts/winrtbuild.ps1
+++ b/build-scripts/winrtbuild.ps1
@@ -248,7 +248,7 @@ if ($DidAnyDLLBuildFail -eq $true) {
Write-Host -ForegroundColor Cyan "... via NuGet install: $NugetPath"
$NugetOutputDir = "$PSScriptRoot\..\VisualC-WinRT\lib\nuget"
Write-Host -ForegroundColor Cyan "... output directory: $NugetOutputDir"
- $SDLHGRevision = $($(hg log -l 1 | select-string "changeset") -Replace "changeset:\W*(\d+).*",'$1') 2>$null
+ $SDLHGRevision = $($(hg log -l 1 --repository "$PSScriptRoot\.." | select-string "changeset") -Replace "changeset:\W*(\d+).*",'$1') 2>$null
Write-Host -ForegroundColor Cyan "... HG Revision: $SDLHGRevision"
# Base options to nuget.exe