Project diff possible from cmd line?

If you are having a problem using SourceOffSite, post a message here.

Moderator: SourceGear

Post Reply
radek
Posts: 2
Joined: Sat Oct 27, 2007 9:51 pm

Project diff possible from cmd line?

Post by radek » Tue Mar 03, 2009 8:02 pm

I am trying to integrate SOS with Codestriker. To do it, I have to generate project diff in "unidiff" format.
1. Is there SOS command line equivalent of

Code: Select all

cvs diff -uN > /tmp/review.txt
??
2. If not, I could use directories created by "Show differencies" of SOS GUI and diff them with standard diff tool. Is the option "Show differences" available in SOS command line? How can I get names of the directories created (~TEMP\localxxx and ~TEMP\remotexxx)?

or is there any other suggestion how to integrate with Codestriker?

thank you,
best regards,
Radek.

lbauer
Posts: 9736
Joined: Tue Dec 16, 2003 1:25 pm
Location: SourceGear

Re: Project diff possible from cmd line?

Post by lbauer » Wed Mar 04, 2009 3:58 pm

SourceOffSite does not have a diff function in the commandline client. Since you are communicating with a VSS database, you could consider using the SourceSafe commandline client, which does have a diff function. For documentation see SourceSafe Help.

Another option would be to write a batch or shell script to do gets of the versions you wantwith the SOS CLC, and then compare those directories using SourceGear Diff/Merge or the diff tool of your choice.
Linda Bauer
SourceGear
Technical Support Manager

Post Reply