Allow specifying a revision to initialize VMR from (#15038)

This commit is contained in:
Přemek Vysoký 2022-11-28 16:41:37 +01:00 committed by GitHub
parent 24f595040d
commit 574f3a5275
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -55,6 +55,7 @@
<PropertyGroup> <PropertyGroup>
<RootRepoName>$([System.IO.Path]::GetFileName("$(RepoRoot.TrimEnd('/').TrimEnd('\\'))"))</RootRepoName> <RootRepoName>$([System.IO.Path]::GetFileName("$(RepoRoot.TrimEnd('/').TrimEnd('\\'))"))</RootRepoName>
<TargetRevision Condition=" '$(TargetRevision)' == '' ">@(RootRepoCommitSha)</TargetRevision>
</PropertyGroup> </PropertyGroup>
<!-- Get installer's sha --> <!-- Get installer's sha -->
@ -62,14 +63,14 @@
<Output TaskParameter="ConsoleOutput" ItemName="RootRepoCommitSha" /> <Output TaskParameter="ConsoleOutput" ItemName="RootRepoCommitSha" />
</Exec> </Exec>
<Message Text="--> Initializing individual repos recursively. Starting from $(RootRepoName) / @(RootRepoCommitSha)" Importance="High" /> <Message Text="--> Initializing individual repos recursively. Starting from $(RootRepoName) / $(TargetRevision)" Importance="High" />
<!-- We are hardcoding the package version for the root repo (installer), since there <!-- We are hardcoding the package version for the root repo (installer), since there
isn't a Version.Details.xml file to read it from. isn't a Version.Details.xml file to read it from.
See https://github.com/dotnet/source-build/issues/2250 --> See https://github.com/dotnet/source-build/issues/2250 -->
<VirtualMonoRepo_Initialize <VirtualMonoRepo_Initialize
Repository="$(RootRepoName)" Repository="$(RootRepoName)"
Revision="@(RootRepoCommitSha)" Revision="$(TargetRevision)"
PackageVersion="8.0.100" PackageVersion="8.0.100"
Recursive="true" Recursive="true"
VmrPath="$(VmrDir)" VmrPath="$(VmrDir)"