100 likes | 209 Views
WebDAV Subbaseline feature. Key. Color Key:. Resource. New resource. Modified resource. Version resource. New version resource. Binding. Acronyms: BCC = Baseline-Controlled Collection VCC = Version-Controlled Configuration VCR = Version-Controlled Resource
E N D
Key Color Key: Resource New resource Modified resource Version resource New version resource Binding Acronyms: BCC = Baseline-Controlled Collection VCC = Version-Controlled Configuration VCR = Version-Controlled Resource VHR = Version History Resource BHR = Baseline History Resource
Use case • We have a collection called build which contains a file called project.mk, and a sub-collection called src. The build/src collection contains a file called main.c. • We want to baseline the build collection but capture the build/src collection as a subbaseline (component of the main configuration).
Collection and members Collection (build) Collection (build/src) Binding src Binding project.mk VHR (vhr/h2) Checked-In VCR (build/project.mk) VCR (build/src/main.c) V1 Binding main.c VHR (vhr/h1) Checked-In V1 V2
Baseline the build/src collection • First a baseline is created, rooted at the build/src collection • The lower-level component in the namespace must be baselined first since a configuration cannot contain members of other configurations. • This creates a new VCC, BHR, baseline version, baseline collection and members. • The version-controlled-configuration property of the VCR for build/src/main.c will identify the new VCC (vcc/1).
Baseline of build/src Baseline-Controlled Collection (build/src) Binding main.c VCR (build/src/main.c) Version-Controlled-Configuration BaselineCollection (bc/10) VHR (vhr/h2) VCC (vcc/1) Checked-In Version-controlled-configuration V1 VCR (bc10/main.c) Binding main.c BHR (bhr/h1) Baseline-Controlled-Collection Checked-In Baseline (bln/1) Baseline-collection Checked-In
Baseline the build collection • Next another baseline is created, rooted at the build collection • The new baseline will not capture any members of the build/src collection since they already have their version-controlled-configuration property set. • This creates a new VCC, BHR, baseline version, baseline collection and members. • The version-controlled-configuration property of the VCR for build/project.mk will identify the new VCC (vcc/2).
Baseline of build Baseline-Controlled Collection (build) Binding project.mk VCR (build/project.mk) Version-Controlled-Configuration VCC (vcc/2) Checked-In Version-controlled-configuration VCR (bc11/project.mk) BHR (bhr/h2) Baseline-Controlled-Collection VHR (vhr/h1) Checked-In V1 V2 BaselineCollection (bc/11) Baseline (bln/2) Binding project.mk Baseline-collection Checked-In
The subbaseline property • To make the baseline of build/src (bc/10) a subbaseline of the main baseline (bc/11) the following needs to happen: • The VCC for the main baseline (vcc/2) needs to be checked-out. • The subbaseline property of the checked-out VCC is set to point to the other baseline (bc/10). • The VCC is then checked-in (also causing a new baseline-collection and members to be created). • Note that the VCC and BCC resources etc are not shown…
Final structure BaselineCollection (bc/11) BHR (bhr/h2) Baseline (bln/2) VCR (bc11/project.mk) Binding project.mk Baseline-collection Checked-In Baseline (bln/3) BaselineCollection (bc/12) VHR (vhr/h2) Baseline-collection Subbaseline-set VCR (bc12/project.mk) V1 Binding project.mk Checked-In VHR (vhr/h1) BHR (bhr/h1) V1 BaselineCollection (bc/10) Baseline (bln/1) V2 VCR (bc10/main.c) Baseline-collection Binding main.c Checked-In