We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
Hi Is there a way to ensure that "Set Current Project" is selected before the next SVCS command is issued? The reason I ask is that if I have two Keil projects open and I forget which project is "current" to sourcesafe and I issue a command, I may end up really screwing up an existing project file. For example, project1 has a file called main.c and project 1 is current. If in project2 I also have a main.c file and I check it in, I have just messed up my project. Any tricks to get around this other than remembering to hit the set current project EVERY time? Thanks James
As it turns out, that didn't solve the potential problem. The USERNAME value is stored in a global Keil setting somewhere (probably the project). So if I change the username in my second project, it also changes it in my first. The problem still exists that if I forget to change the user name before issuing a command, I could corrupt my sourcesafe tree without even knowing. James
You should use the Project Ident field to specify the username(This is stored for each project) I would create an Username that is consisting of User Name and Project Ident. This requires changing the template file. replace all occurences of %U in the template file with %U%I . Example: User Name: "Admin" 1st Project Ident: "Blinky" 2nd Project Ident: "Hello" Now you use "AdminBlinky" and "AdminHello" as users for the different projects in VSS.
Ahh yes, good idea! That works! Thanks very much James
Matthias, how do I set the "Project Ident"? Can you post instructions? Thanks much, Ed
"Project Ident" is a setting, that you can make in the Configuration Dialog of the SVCS in µVision (SVCS->Configure Version Control). It can be passed to an SVCS Tool (e.g. Visual SourceSafe) with %I. The Project Ident is stored for each project, so each µVision Project can have its own.
Got it. Thanks again! Ed