comparing large Projects

I am trying to find out ways to compare large VSS projects between production and maintenence. there are atleast 15 - 20 projects and typical sizes of these projects vary from 1 - 15 GB.
I was wondering whether writing a batch script might be the best way to do this. I read about the command line options in VSS and it seems a good option. Has any one written a batch script to do something like this I am also wondering if this would work on some of the large databases, what kind of reports would i get if i use the command line etc. Any suggestions are welcome
Thanks
Suresh



Answer this question

comparing large Projects

  • Chaudhary

    I have been able to partly complete this, however my Diff seems to be comparing against the VSS installation folder instead of the working folder.

    This is my essential script. (All variables are obtained as user inputs)

    set SSDIR=%purged_dir%
    ss cp $/ -y%p_user%,%p_pass%

    @rem Get process started
    ss get * -GL%wkg_flr% -y%p_user%,%p_pass% -R -I-y

    @rem compare the purged and current databases

    @rem set Variables for current Database
    Set SSDIR=%current_dir%
    ss cp $/ -y%C_user%,%c_pass%
    ss workfold $/ %wkg_flr% -y%C_user%,%c_pass%
    @rem start Diff process.
    ss Diff $/ -y%c_user%,%c_pass% -o@c:\o.txt -R -I-y

    (Purged and current DB are the same DB's before and after purge.)

    I have tried the commands individually on the command prompt and cant figure out whats wrong. SS project gives me the right project and my working folder has all the files from get operation. however when i run the diff, it seems to be comparing the project against C:\VSS\Wn32 (installation folder) instead of the local folder i set. I do not understand why this happens.
    I do not have any Environment variables set.
    I also tried setting the force_dir to yes, but still no use. any suggestions on what i could do.



  • Matt Carroll

    I am going through the command line way now, but i am facing some difficulties with it.
    I use Get command to get the files from one project, say X and then do a diff against another project(Y).( They bot hare basically copies and we would like to know if anything went wrong during the copy).
    I am trying to write a batch file for this. the problem i am seeing is that i do not kknow how to schange the project after doing the get but before the diff. I dont want to be doing this manually, since i am planning to put this in a batch file. Anyone, any suggestions on how to do this


  • Marcos D. A. de Souza

    Both command line and vss automation object modal can do the work.

    command line is easier.

    For your situation, it also depends on whether this is a recurrent task. If it is, considering a large cocebase is involved, I would suggest you use some other tools, like vss change notification email tools.

    There are lots of them, cryptmonkey, filewatch, sourcecompanion.  Sourcecompanion, worth special notice in that it allows you to getlatest directly on the email. It also have other features, like batch sync, redundent change emails merge, etc.

     



  • alewis28

    Have you tried the "sse.exe CP" command

    Anyway, you don't need to change the project, you can simply pass the full project path to the diff command "ss.exe diff $/FullPathTo/OtherProject" to compare the local folder against the other project.


  • comparing large Projects