#1
|
|||
|
|||
Vss Conditional Build
Hello,
we are registered VBP users and are extremely satisfacted of it! Now we need to do the following: Get the History of a VSS project and, if there are Check-ins after a label, compile and relabel with an increased version number. For example look at this vss history output: History of $/TestProject ... ***** test.txt ***** Version 2 User: Admin Date: 2/06/08 Time: 11:13a Checked in $/TestProject Comment: ***************** Version 3 ***************** Label: "1.0.0" User: Admin Date: 2/06/08 Time: 11:02a Labeled Label comment: ***************** Version 2 ***************** User: Admin Date: 2/06/08 Time: 10:24a test.txt added ***************** Version 1 ***************** User: Admin Date: 2/06/08 Time: 10:23a Created Comment: As you can see, we created the file, labeled it (1.0.0), then checked it out, modified and checked it in. We would like to get the last label version (1.0.0), rebuild project with modified sources and label it increasing version (1.0.1). So automatically go in this scenario: History of $/TestProject ... ***************** Version 4 ***************** Label: "1.0.1" User: Admin Date: 2/06/08 Time: 11:16a Labeled Label comment: ***** test.txt ***** Version 2 User: Admin Date: 2/06/08 Time: 11:13a Checked in $/TestProject Comment: ***************** Version 3 ***************** Label: "1.0.0" User: Admin Date: 2/06/08 Time: 11:02a Labeled Label comment: ***************** Version 2 ***************** User: Admin Date: 2/06/08 Time: 10:24a test.txt added ***************** Version 1 ***************** User: Admin Date: 2/06/08 Time: 10:23a Created Comment: I think the key is to execute vss history then get vss output and process it parsing the text rows. How can we do it? Thnks in advance |
|
|