SourceSafe Merge at the project level

后端 未结 1 742
鱼传尺愫
鱼传尺愫 2021-01-06 07:01

I\'m running SourceSafe and I have two branches of my code. I\'m currently using the manual approach of running a report to show differences and then manually merging each f

相关标签:
1条回答
  • 2021-01-06 07:59

    Looks like there isn't a built-in way to do this through the UI. But they do provide a command line tool which I ended up writing a batch file for to streamline option specification:

    ECHO OFF
    SET SSDIR=K:\Archive
    
    SET /P MainProject=Please enter the project to merge into (e.g. "$/Trunk"):
    SET /P BranchedProject=Please enter the branched project (e.g. "$/Active Branches/Branch1"):
    SET /P Comment=Comment:
    
    SS CP %MainProject%
    IF NOT EXIST C:/BranchCheckouts MKDIR "C:/BranchCheckouts"
    IF EXIST "C:/BranchCheckouts/mergelog.txt" DEL "C:/BranchCheckouts/mergelog.txt"
    SS MERGE %BranchedProject% -GL"C:/BranchCheckouts" -O@"C:/BranchCheckouts/mergelog.txt" -C%Comment% -R
    PAUSE
    
    0 讨论(0)
提交回复
热议问题