Sourcesafe - Get files on an existing Label

I cannot seem to get reliable results when attempting to get files from VSS against a previously created label.

E.g.
I have 2 projects A & B.

Both projects have been previously labelled with Finalbuilder.

I use exactly the same settings in both calls but A will download the correct version. B will give a ‘Version not found’ error.

Anyone got any ideas?

Hi Clive,

What are some examples of the labels you are using? I seem to remember that there was some issue with labels that have numbers in them or something?

.t8

I Tate,
Thanks for getting back to me.

I use FB to label all of the projects in the same format.

The label used is: %BuildNum%-LMR-9810

Where

%BuildNum% is a variable set by reading previous setings from a text file and incrementing the Build Number by one. The format is 8.9.1.53

LMR is the product name.

9810 is the CPU number of the build machine.

The whole label for this build would be 8.9.1.53-LMR-9810
’Expand Expression’ is checked
’Modifier’ = Trim
’Apply to existing value’ is not checked
’Force Type’ = Default

Our process is:
1. Read the existing build number and increment by one
2. Label all required projects in VSS
3. Do a ‘GET’ on the label that was just created
4. Build the software

I have done a check after the labelling process to see if all of the projects and components have got the correct label and it does seem so.

Any help you can give would be appreciated.

Regards,

Clive

Hi Tate,

Thanks for the reply.

The build number is a consistent format across all projects. It is set with FB and its format is:

%BuildNum%-LMR-9810

Where

%BuildNum% - This is a variable containing our software version number. The last one used is read from a text file and the final number (build number) is incremented by one.

LMR is the product name

9810 is the CPU number of the build machine

A typical label would be 8.9.1.53-LMR-9810

’Expand Expression’ is checked
’Modifier’ is set to TRIM
’Apply to existing value’ is not checked
’Force Type’ is set to DEFAULT

In brief, our build proces with FB is:

1. Get the last version number from saved text file and increment by one
2. Create BuildNum and LABEL variables based on that number
3. Label all of the required projects in VSS
4. Do a ‘GET’ from VSS on the label just created
5. Build the software

I did do a check to see if all of the sub projects and components get labelled correctly and it seemed to be OK.





Any help you can give would be appreciated

Regards,

Clive

Hi Clive,

I really have no idea why it’s not working for you sometimes. My only suggestion is that if you can get a reproducible case (with a sample vss database) and send it to us, we can step through the code to see if we can figure out what’s going wrong.

cheers,
.t8