SourceSafe Integration

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
George Schizas

SourceSafe Integration

Post by George Schizas »

Is there any easy way to integrate SourceSafe into TextPad? SourceSafe (at least version 6.0 - which comes with Visual Studio 6) has a command line interface, named ss.exe, which does pretty much what the GUI does.

The commands are quite simple: SS Checkout to take the file from the project pool and SS Checkin to put it back in. There are a lot more commands of course, but these are the most frequently used.

The problem: The command takes two paramters. The second is the filename ($file I guess). The first is a lot trickier: It is the source file filename within the SourceSafe project pool. So, to checkout a file named "file.asp" inside a folder named "folder" of a project named "project", you would have to type:

SS Checkout $/project/folder/file.asp C:\WorkingFolder\Project\Folder\file.asp

Any solutions/suggestions?
Roy Beatty

Re: SourceSafe Integration

Post by Roy Beatty »

Say you have a file containing a list of module names: file1.asp, file2.asp, ....<br>
Move the cursor to the appropriate line<br>
Run a tool like:

SS Checkout $/project/folder/$SelLine C:\WorkingFolder\Project\Folder\$SelLine

Would that do it?

HTH,
Roy
George Schizas

Re: SourceSafe Integration

Post by George Schizas »

No, actually I would like to checkin/checkout (and potentially add, deploy or whatever) the file I'm currently working on. Also /project/folder/ should be a part of the whole command line. The $SelLine approach offers less than the GUI interface... I was thinking something like SS Checkout $SourceSafeTranslatedFile $file. The problem is that there is no easy way to convert C:\WorkingFolder\Project\Folder\file.asp into $/Project/Folder/file.asp (with everything after the C:\WorkingFolder\ as parameter). I was thinking perhaps something like a $Replace(C:/WorkingFolder,$$,$UnixFilename), but AFAIK there is no such Tool Parameter Macro...
Roy Beatty

Re: SourceSafe Integration

Post by Roy Beatty »

Couldn't you call the SS commands from within, say, a Perl program that makes the changes for you? So your tool would call a Perl program with the same arguments. It would assemble the SS commands as required, and execute them.
Post Reply