230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
|
lappend myrevisions $rev
return
}
method done {} {
# Complete the revisions, branches, and tags. This includes
# looking for a non-trunk default branch, marking its members
# and linking them into the trunk.
$self DetermineRevisionOperations
$self DetermineLinesOfDevelopment
$self HandleNonTrunkDefaultBranch
$self RemoveIrrelevantDeletions
$self RemoveInitialBranchDeletions
if {[$myproject trunkonly]} {
$self ExcludeNonTrunkInformation
}
return
}
# # ## ### ##### ######## #############
## State
variable myid {} ; # File id in the persistent state.
|
|
>
>
>
|
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
lappend myrevisions $rev
return
}
method done {} {
# Complete the revisions, branches, and tags. This includes
# looking for a non-trunk default branch, marking its members
# and linking them into the trunk, possibly excluding
# non-trunk data, and collecting aggregate symbol statistics.
$self DetermineRevisionOperations
$self DetermineLinesOfDevelopment
$self HandleNonTrunkDefaultBranch
$self RemoveIrrelevantDeletions
$self RemoveInitialBranchDeletions
if {[$myproject trunkonly]} {
$self ExcludeNonTrunkInformation
}
$self AggregateSymbolData
return
}
# # ## ### ##### ######## #############
## State
variable myid {} ; # File id in the persistent state.
|
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
|
set root [$root child]
}
}
return [list [lsort -unique -dict $revisions] [lsort -unique -dict $symbols]]
}
# # ## ### ##### ######## #############
## Configuration
pragma -hastypeinfo no ; # no type introspection
pragma -hasinfo no ; # no object introspection
pragma -hastypemethods no ; # type is not relevant.
|
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
|
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
|
set root [$root child]
}
}
return [list [lsort -unique -dict $revisions] [lsort -unique -dict $symbols]]
}
method AggregateSymbolData {} {
# Now that the exact set of revisions (and through that
# branches and tags) is known we can update the aggregate
# symbol statistics.
foreach root [$self LinesOfDevelopment] {
set lod [$root lod]
# Note: If the LOD is the trunk the count*, etc. methods
# will do nothing, as it is always present (cannot be
# excluded), and is always a branch too.
# Lines of development count as branches and have a commit
# on them (root). If they are still attached to a tree we
# have to compute and register possible parents.
$lod countasbranch
$lod countacommit
if {[$root hasparentbranch]} {
# Note lod == [$root parentbranch]
$lod possibleparents
}
# For the revisions in the line we register their branches
# and tags as blockers for the lod, and update the type
# counters as well. As branch symbols without commits on
# them are not listed as lines of development, we have to
# count them here as well, as plain branches. At last we
# have to compute and register the possible parents of the
# tags, in case they are later converted as branches.
while {$root ne ""} {
foreach branch [$root branches] {
$lod blockedby $branch
$branch possibleparents
if {[$branch haschild]} continue
$branch countasbranch
}
foreach tag [$root tags] {
$lod blockedby $tag
$tag possibleparents
$tag countastag
}
set root [$root child]
}
}
return
}
# # ## ### ##### ######## #############
## Configuration
pragma -hastypeinfo no ; # no type introspection
pragma -hasinfo no ; # no object introspection
pragma -hastypemethods no ; # type is not relevant.
|