Skip to content
Permalink
Browse files
WinRT: allowed NuGet packaging code to get hg revision regardless of cwd
  • Loading branch information
DavidLudwig committed Dec 2, 2015
1 parent 89898d8 commit 3b79ab4c2bd73de365460349830912a44e23f4e2
Showing with 1 addition and 1 deletion.
  1. +1 −1 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

0 comments on commit 3b79ab4

Please sign in to comment.