Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Source Safe / March 2006

Tip: Looking for answers? Try searching our database.

Comparing versions

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Thomas Bodell - 28 Mar 2006 11:56 GMT
Hi all,

Is there any function for making a file compare between a version in
SourceSafe and a local copy in the SourceSafe COM or Interop interface?. I
have not been able to find any. Or is there any other way to achieve this?

TIA

Thomas Bodell
Alin Constantin [MSFT] - 29 Mar 2006 03:04 GMT
Does IVssItem.IsDifferent work for you?
http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.sourcesafe.inter
op.ivssitem.isdifferent(VS.80).aspx

You have to get a VSSItem for the item in the VSS database, and call
IsDifferent to compare it against the local version.

If you want to display a visual diff of the files, "ssexp /diff" might be
what you're looking for
http://msdn2.microsoft.com/en-us/library/ms181130(VS.80).aspx
You have to use first IVssItem.Get to get a local copy C:\temp\file.tmp of
the item from the VSS project $/VssProject/File.txt, then run ssexp in diff
mode.
E.g: ssexp /diff C:\temp\file.tmp C:\MyProject\File.txt
$/VssProject/File.txt
Signature

Alin Constantin
This posting is provided "AS IS" with no warranties, and confers no rights.

> Hi all,
>
[quoted text clipped - 5 lines]
>
> Thomas Bodell
Thomas Bodell - 30 Mar 2006 09:47 GMT
Thank you the tip with using ssexp was just what I was looking for.

Thomas Bodell
> Does IVssItem.IsDifferent work for you?
> http://msdn2.microsoft.com/en-us/library/microsoft.visualstudio.sourcesafe.inter
op.ivssitem.isdifferent(VS.80).aspx

[quoted text clipped - 19 lines]
>>
>> Thomas Bodell

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.