Ewl » Canonical The canonical version of EWL Read More
Clone URL:  
Pushed to 2 repositories · View In Graph Contained in tip and canonical

tip canonical Added HgChangesetId to Build message.

Changeset ad31eaab93fd

Parent c3965f42401e

by Profile picture of William GrossWilliam Gross

Changes to 2 files · Browse files at ad31eaab93fd Showing diff from parent c3965f42401e Diff from another changeset...

 
3
4
5
6
7
8
9
10
11
12
 
 
 
 
 
 
 
 
13
14
15
16
17
18
 
 
 
19
20
21
 
25
26
27
28
29
30
31
32
 
 
 
 
 
33
34
35
 
39
40
41
42
43
 
 
44
45
46
 
3
4
5
 
 
 
 
 
 
 
6
7
8
9
10
11
12
13
14
15
16
 
 
 
17
18
19
20
21
22
 
26
27
28
 
 
 
 
 
29
30
31
32
33
34
35
36
 
40
41
42
 
 
43
44
45
46
47
@@ -3,19 +3,20 @@
  <element name="Build">   <complexType>   <sequence> - <element name="SystemId" type="int"/> - <element name="SystemName" type="string"/> - <element name="SystemShortName" type="string"/> - <element name="MajorVersion" type="int"/> - <element name="BuildNumber" type="int"/> - <element name="LogicSize" type="int" nillable="true"/> - <element name="ServerSideLogicPackage" type="base64Binary"/> + <element name="SystemId" type="int" /> + <element name="SystemName" type="string" /> + <element name="SystemShortName" type="string" /> + <element name="MajorVersion" type="int" /> + <element name="BuildNumber" type="int" /> + <element name="HgChangesetId" type="string" /> + <element name="LogicSize" type="int" nillable="true" /> + <element name="ServerSideLogicPackage" type="base64Binary" />   <element name="ClientSideApp" minOccurs="0">   <complexType>   <sequence> - <element name="Name" type="string"/> - <element name="AssemblyName" type="string"/> - <element name="Package" type="base64Binary"/> + <element name="Name" type="string" /> + <element name="AssemblyName" type="string" /> + <element name="Package" type="base64Binary" />   </sequence>   </complexType>   </element> @@ -25,11 +26,11 @@
  <element name="Installation" minOccurs="0" maxOccurs="unbounded">   <complexType>   <sequence> - <element name="Id" type="int"/> - <element name="Name" type="string"/> - <element name="ShortName" type="string"/> - <element name="IsLiveInstallation" type="boolean"/> - <element name="ConfigurationPackage" type="base64Binary"/> + <element name="Id" type="int" /> + <element name="Name" type="string" /> + <element name="ShortName" type="string" /> + <element name="IsLiveInstallation" type="boolean" /> + <element name="ConfigurationPackage" type="base64Binary" />   </sequence>   </complexType>   </element> @@ -39,8 +40,8 @@
  <element name="NuGetPackages" minOccurs="0">   <complexType>   <sequence> - <element name="Prerelease" type="base64Binary"/> - <element name="Stable" type="base64Binary"/> + <element name="Prerelease" type="base64Binary" /> + <element name="Stable" type="base64Binary" />   </sequence>   </complexType>   </element>
 
154
155
156
 
 
 
 
 
 
 
 
 
 
 
157
158
159
 
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
@@ -154,6 +154,17 @@
  build.SystemShortName = installation.ExistingInstallationLogic.RuntimeConfiguration.SystemShortName;   build.MajorVersion = installation.CurrentMajorVersion;   build.BuildNumber = installation.NextBuildNumber; + + var hgOutput = Directory.Exists( EwlStatics.CombinePaths( installation.GeneralLogic.Path, ".hg" ) ) + ? EwlStatics.RunProgram( + @"C:\Program Files\TortoiseHg\hg", + "--debug identify --id \"{0}\"".FormatWith( installation.GeneralLogic.Path ), + "", + true ) + .Trim() + : ""; + build.HgChangesetId = hgOutput.Length == 40 ? hgOutput : ""; +   build.LogicSize = ConfigurationLogic.NDependIsPresent && !installation.DevelopmentInstallationLogic.SystemIsEwl   ? GetLogicSize.GetNDependLocCount( installation, false ) as int?   : null;