SourceSafe Sync with SVN

Our company has a policy establishing the requirement to save the source code in the SourceSafe repository. I tried very hard to convince the management to switch to SVN without success (in any case, this is another problem).

Since I and some of my colleagues use the SVN repository hosted on my computer (via Apache), I created a PowerShell script that backs up the repository to the company server (which is then periodically backed up). This works well, but I also want to keep a copy of the source code on our SourceSafe server.

Any experience or advice on this?

thanks

+4
source share
4 answers

I'm not sure there is a good way, but one way would be to use SVN Server Hooks to do the same in Source Safe using the VSS command-line tools. I think this was discussed earlier on the svn-user mailing list. You can try to find archives here.

+2
source

How about checking in the SVN repository for SourceSafe?

+3
source

Bad, I feel your pain.

How about overnight exporting your code, wired and stored in VSS? Most tools are designed to move differently, so if you want this to be automated, you will have to write something yourself.

+1
source

It seems like a good idea to create a batch file that regularly checks the current source code from SVN in sourceafe.

You can create a batch file that runs every night using a scheduled task. He will use the sourcesafe command line utility to check the entire codebase on the local file system. He will then do the same using the subversion command line client to get the latest version in the same directory. Then you can perform a check using the sourcesafe command line.

The hard part will detect new files added to subversion and add them to the sourcesafe database. You could supposedly iterate over all the files and see which ones were not checked only after the last check. Another problem would be renaming and deletion handling; I believe that it would not matter that the deleted files remain in sourceafe, as it sounds as if no one is using this codebase.

+1
source

Source: https://habr.com/ru/post/1276931/


All Articles