Skip to content

Commit c6602e3

Browse files
committed
Change class pre-IRIS support
Extend %Persistent first to avoid creating a subextent. Requires redefining indices + storage.
1 parent 7555c6b commit c6602e3

File tree

1 file changed

+55
-5
lines changed

1 file changed

+55
-5
lines changed

cls/SourceControl/Git/Change.cls

Lines changed: 55 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Include SourceControl.Git
22

3-
Class SourceControl.Git.Change Extends %Studio.SourceControl.Change
3+
Class SourceControl.Git.Change Extends (%Persistent, %Studio.SourceControl.Change)
44
{
55

66
/// Returns the name of the backup file for this Item in the file system
@@ -10,10 +10,9 @@ Property BackupName As %String [ Calculated, SqlComputeCode = {s {*} = ""}, SqlC
1010
/// Returns the name of this Item in the file system
1111
Property ExternalName As %String [ Calculated, SqlComputeCode = {S {*} = "" }, SqlComputed ];
1212

13-
Storage Default
14-
{
15-
<Type>%Storage.Persistent</Type>
16-
}
13+
Index CommittedMap On Committed [ Type = bitmap ];
14+
15+
Index ChangeList On (ItemFile, CommittedTime) [ Data = Action, Unique ];
1716

1817
/// Removes one or more Uncommitted items from the Uncommitted queue and changes the exported file to Readonly (except for reverts of Adds, or new CSP files within the Perforce root)
1918
/// <P> Default assumed behavior is that the the change was not reverted, and that it was actively committed to Perforce
@@ -128,5 +127,56 @@ ClassMethod RefreshUncommitted(Display = 0, IncludeRevert = 0, Output gitFiles)
128127
quit sc
129128
}
130129

130+
Storage Default
131+
{
132+
<Data name="ChangeDefaultData">
133+
<Value name="1">
134+
<Value>%%CLASSNAME</Value>
135+
</Value>
136+
<Value name="2">
137+
<Value>Action</Value>
138+
</Value>
139+
<Value name="3">
140+
<Value>Committed</Value>
141+
</Value>
142+
<Value name="4">
143+
<Value>CommittedTime</Value>
144+
</Value>
145+
<Value name="5">
146+
<Value>CCR</Value>
147+
</Value>
148+
<Value name="6">
149+
<Value>InternalName</Value>
150+
</Value>
151+
<Value name="7">
152+
<Value>ItemFile</Value>
153+
</Value>
154+
<Value name="8">
155+
<Value>Name</Value>
156+
</Value>
157+
<Value name="10">
158+
<Value>Source</Value>
159+
</Value>
160+
<Value name="11">
161+
<Value>UpdatedTime</Value>
162+
</Value>
163+
<Value name="12">
164+
<Value>ChangedBy</Value>
165+
</Value>
166+
<Value name="13">
167+
<Value>ActivelyCommitted</Value>
168+
</Value>
169+
<Value name="14">
170+
<Value>P4Issued</Value>
171+
</Value>
172+
</Data>
173+
<DataLocation>^Studio.SourceControl.ChangeD</DataLocation>
174+
<DefaultData>ChangeDefaultData</DefaultData>
175+
<IdLocation>^Studio.SourceControl.ChangeD</IdLocation>
176+
<IndexLocation>^Studio.SourceControl.ChangeI</IndexLocation>
177+
<StreamLocation>^Studio.SourceControl.ChangeS</StreamLocation>
178+
<Type>%Storage.Persistent</Type>
179+
}
180+
131181
}
132182

0 commit comments

Comments
 (0)