import from a label


be able to specify a label to import. I want to import from a specific label and not the trunk.

file attachments


nickntg wrote Dec 21, 2009 at 5:08 PM

Doesn't sound unreasonable. Let us consider this feature for a while.

wrote Dec 21, 2009 at 5:09 PM

dholmes wrote Dec 21, 2009 at 7:00 PM

i added a textbox to the form named txtVssLabel. Then inside cmdSourceSafeFiles_Click i added
        doLog("Searching for VSS project...")
        vssProject = db.VSSItem(txtVSSPath.Text, False)
'i added from here
        If txtVssLabel.Text.Length > 0 Then
            vssProject = vssProject.Version(txtVssLabel.Text)
        End If
'to here

that was all i had to do to support this feature.

wrote Dec 21, 2009 at 7:00 PM

nickntg wrote Dec 22, 2009 at 6:27 AM

Thanks for the code fragment dholmes, it's really appreciated!

gbjbaanb wrote Dec 22, 2009 at 1:09 PM

can't see why not, only import those VSS files that are labelled with the specified text. Its one way to restrict importing only certain files. You will have to check it doesn't import history, just 1 revision per file. I'll merge it in ... sometime next year.

nickntg wrote Jan 12, 2010 at 7:02 AM

dholmes, did the code posted by gbjbaanb address this?

dholmes wrote Jan 12, 2010 at 12:23 PM

i didn't see any new code. The revision of the code is the same as it was when i pulled it in December. I do know that what i posted works. I have imported my VSS with all history up to the label specified.

wrote Feb 14, 2013 at 3:01 AM