In 'Show History' From and To fields does not work with the L (label) option

I am using Vss version 6.0d client with same database.

In the database i have several projects. When selecting a project and select Show History, I am searching for sources with a specific label.

Therefore I enter the Llabel in the To and/or From fields in de dialog box but I always get the error that NO ITEMS IN THE LIST.

I have verified that the label I have entered does exist on several sources. I also tried case sensitive, -L, command line arguments but nothing seems to work.

Can anyone please help me out?

Many thanks in advance.

Rob

[586 byte] By [RobMijnen] at [2007-12-24]
# 1
Make sure you prefix the label with "L". So if you want to see the history between label "build1" and "build2", you'd enter "Lbuild1" and "Lbuild2" in the dialog.
RichardBergMSFT at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 2

I have done that exactly as the Help suggested. I have even labelled several sources with the 'beta1' example. So when filling in 'Lbeta1' in the From or To box, the error message appears.

I also tried to use the command line option. I have entered:

ss history $/myfolder -VLbeta1 but in this also no respons (also tried /*.* after myfolder, capitols, etc)

So I guess it is nothing to do with the UI but maybe something is wrong with my Database version? VSS version 8 does have the same problem.

RobMijnen at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 3
If you request the history without any To or From values, do the labels appear in the History dialog as expected?
RichardBergMSFT at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 4
Yes, all the history is shown when leaving the To and From empty.
RobMijnen at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 5
Sorry for the stupid questions. I'm not sure what might be wrong with your DB. If you run the Analyze tool from VSS 8 does it report any problems?
RichardBergMSFT at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 6
The analyze tool is ready in a second and does not report any errors.
RobMijnen at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 7

I was amazed to see that specifying version range as labels works in both VSS6 and VSS2005. I don't remember any help page to mention this working, I only remember version ranges specified as numbers or date/times.

Anyway, for me it works with both VSS2005 and VSS6.0d 9848 to get the history using label ranges.

With command line to get the range for a file it works like this "ss hist $/1.txt -VLlabel2~label1". With UI I specify From:label1 and To:label2, where label1 was in time before label2. It doesn't work however to get the history of a project in a similar manner.

For a project, I made the following test:

- label $/ with label1

- add a file in root

- label $/ with label2

To get the history of the project between the labels I have to do this:

- with command line "ss hist $/ -VLlabel2~Llabel1" (notice an L that was not necessary for the file)

- with UI, select $/, invoke history, fill in From:Llabel1, To:Llabel2

Alin

AlinConstantin-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 8

Okay Alin, I got it working now :-) (All credits to Alin)

I followed exactly what you have done as well and I got the history!

The difference is that you (I expect) select the file (on the right handside of the UI) as I select the folder on the lefthandside of the user interface.

When I select Folder (Because I have labelled several sources ) I want to retrieve a list of sources with that explicitly named label.

Lets say I have the label Name but I dont know the names of the sources with that label. I have to examin every source or i have to get the history of all files with the option 'label only'.

Do you know why the option does not work when selecting the folder on the lefthandside (Called projects)?

RobMijnen at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 9

For me it worked with both VSS2005/VSS6 even when I selected the project (folder) in left side tree. The label in my case was applied to that project (the database root in my test).

I don't know if the feature works when using inherited labels (e.g. labels set to a parent project, not to the selected folder).

If you're using label promotion (labels set directly/only on the files or on subfolders of the selected folder) I don't expect to see the history. VSS is trying to identify the versions of the parent based on labels and won't be able to do it if the project itself is not labeled. Is it possible this is what you're doing?

Alin

AlinConstantin-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 10

Alin this is exactly what I am trying to do.

To bad that this isn'y the way VSS is working. I cannot label the folder itself because there could be more than 1 change in action. Several developers are working on the same project at the same time, however on different sources.

Thank you very much for your help!

Rob

RobMijnen at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...
# 11

Hi Rob,

Unfortunately VSS is not transactional, and there isn't even the concept of a checkinset. Individual files (which can be even from different logical checkinsets) can be labeled with the same name, but VSS will not treat them as having the same label unless one of the parent folders has the same label, too (this is label promotion). Labeling separate files with the same name cannot be used for a checkinset substitute or for grouping the files.

The only way you could group separate versions of files is to label the parent folder (it won't hurt adding an extra label on the folder after all developers working on the same logical feature have checked in their code). You could then view the history between labels of the parent folder...

Alin

AlinConstantin-MSFT at 2007-8-31 > top of Msdn Tech,Visual Studio,Visual Studio Source Control and SourceSafe...

Visual Studio

Site Classified