Results 1 to 4 of 4

Thread: Visual SourceSafe - need to go back to a labeled version

  1. #1

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,566

    Visual SourceSafe - need to go back to a labeled version

    I worked on some code and unit and systems tested it and now it is in the hands of the customer to do user sign-off then it will go into production. The project is a VB.NET Visual Studio 2008 project and I have it all checked in to SourceSafe. I labeled the version Release #1 and continued to work on it for the next release. So in VSS, if you look at the history of a module you might see:
    Code:
    5 	MMock 8/03/10 11:17a
    <label> MMock 7/26/10 1:29p
    4 	MMock 6/17/10 3:29p
    3 	MMock 6/10/10 12:14p
    etc
    The user found an error. I want to make the fix to the labeled Version, not Version 5, and rebuild it. I pretty much understand how to do this - just get the labeled modules in the project. However, I don't understand this person's point:
    Click the label you wish to retrieve and then click Get on the right hand side of the screen (see Figure 15). This will cause all of the files with this label to be copied to the working directory assigned to this project. As mentioned, you will not be able to check out any files from a labeled release. This prevents anyone from tampering with that released set of files.
    I have to be able to "tamper" with them - that is how I am going to fix the bug. (The article that is excerpted from ishere.)

    Is there a better approach than what I am trying to do?

    Thanks.
    There are 10 kinds of people in this world. Those who understand binary, and those who don't.

  2. #2
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687

    Re: Visual SourceSafe - need to go back to a labeled version

    After you get the correct version.... do a Checkout WITHOUT GETTING LOCAL COPY.... That will check it out to you ... using that version... that will release the read-only lock on the file... THE problem is what to do when you check it back in (if you want to check it in) as it will NOT have the changes from version 5... so if you check it in with your Ver4 fix, you will lose your V5 changes...

    What you can do is once you have made your change and shipped it, undo the check out, then check it out normally, do the change again, this time in the most recent version of the file(s) and then check that in (making it V6.)

    Did that help at all?

    -tg
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  3. #3

    Thread Starter
    PowerPoster MMock's Avatar
    Join Date
    Apr 2007
    Location
    My Mustang GT
    Posts
    4,566

    Re: Visual SourceSafe - need to go back to a labeled version

    Yes, that's pretty much what I was thinking.

    Did I label it prematurely? Once you label it, that is supposed to be represent a released-to-production set of code? But you can still find bugs in released code and want to change the released revision and not pick up current code until the next release. I just want to make sure I'm using SourceSafe correctly.

    What I was thinking was take all my code which represents the labeled version and recent changes. Copy it all to a new project called 2.1. 2.0 is my almost-in-production first version. I could roll back all the changes in all the modules back down to the labeled set in 2.0. Then 2.0 wouldn't have any changes after the labeled revision unless there was a bug fix. (It seems that is more in line with how this company does it).

    Does that make sense?
    There are 10 kinds of people in this world. Those who understand binary, and those who don't.

  4. #4
    Ex-Super Mod RobDog888's Avatar
    Join Date
    Apr 2001
    Location
    LA, Calif. Raiders #1 AKA:Gangsta Yoda™
    Posts
    60,709

    Re: Visual SourceSafe - need to go back to a labeled version

    You can "branch" off the labeled release version to a patch release folder or such. Then check it out, modify code, check it back in and send out the build. From VSS help...

    In VSS, one file can be shared among multiple projects. Changes to the file from one project are automatically seen by other projects sharing the file. This encourages code reuse. Use the Links tab in the Properties command on the File menu to see a list of projects sharing a file.

    Branching is the process of taking a file in two directions (that is, branches or paths) at once. VSS keeps track of these branches by tracking the different paths as a project.

    Note In other (nonproject-oriented) version control systems, branches are tracked through extended version numbers: for example, version "2.3.9.2" is the second revision of the ninth branch of version 2.3. In VSS, however, branches are tracked with different and distinct project names.
    Branching a file breaks the shared link, making the file in that project independent of all other projects. The changes you make in the file are not reflected elsewhere, and vice versa. A branch has been created: two files (the file in the project, and its counterpart in other projects) have a shared history up to a certain point, and divergent histories after that time.

    After you branch a file, the Links tab does not show the link that has been broken. Instead, you use the Paths tab (also available from the Properties command on the File menu) to view the branch history of the file.
    VB/Office Guru™ (AKA: Gangsta Yoda®)
    I dont answer coding questions via PM. Please post a thread in the appropriate forum.

    Microsoft MVP 2006-2011
    Office Development FAQ (C#, VB.NET, VB 6, VBA)
    Senior Jedi Software Engineer MCP (VB 6 & .NET), BSEE, CET
    If a post has helped you then Please Rate it!
    Reps & Rating PostsVS.NET on Vista Multiple .NET Framework Versions Office Primary Interop AssembliesVB/Office Guru™ Word SpellChecker™.NETVB/Office Guru™ Word SpellChecker™ VB6VB.NET Attributes Ex.Outlook Global Address ListAPI Viewer utility.NET API Viewer Utility
    System: Intel i7 6850K, Geforce GTX1060, Samsung M.2 1 TB & SATA 500 GB, 32 GBs DDR4 3300 Quad Channel RAM, 2 Viewsonic 24" LCDs, Windows 10, Office 2016, VS 2019, VB6 SP6

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width