The leading provider of version control solution and TWAIN SDK
The leading provider of version control solution and TWAIN SDK

Dynamsoft Forums

Support for Version Control, Bug Tracking and Configuration Management Software
* Login   * Register
* FAQ    * Search

It is currently Wed May 16, 2012 5:49 pm




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Binary Files Differ
PostPosted: Tue May 12, 2009 12:08 pm 
Offline

Joined: Tue May 12, 2009 11:56 am
Posts: 1
Hi, I get the dreaded "binary files differ" message when trying to do a diff on certain files (ones ending in .srd). I noticed by searching the forums, that you can change the file type from "Binary" to I guess "Mergeable" (my only other option) in the properties section of the Hosted application. However, I have about 100 files in different libraries that need this change. Is there a way to do this en masse so I don't have to visit them individually?

Also, many of the files are currently checked out, is there a way to change them?

Thanks!


Top
 Profile  
 
 Post subject: Re: Binary Files Differ
PostPosted: Thu May 14, 2009 7:26 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
You can search all the .srd files via Wildcard Search, and then locate the file and modify its file type in SourceAnywhere Hosted Client. Wildcard Search can be found at Tools->Wildcard Search. The file type can be changed in the file Properties dialog.

Or, you can change the file type every time you need to perform Diff on a .srd file.

If you would like to change the file type for all the .srd files programatically, you can write a program using SourceAnywhere Hosted SDK. You can use the GetFileListFromProject function recursively to get a list of all files under root ($/). After you get the file path, you can check if it ends with the string ".srd". If the file is a .srd file, you can use the SetFileType function to change its file type.

For more info and the sample code, you can refer to the .CHM help file which comes with SourceAnywhere Hosted SDK. The SDK can be downloaded here:
http://www.dynamsoft.com/download/sawh/ ... %20SDK.exe

Before changing the file type, you need to check in these files.

_________________
Catherine Sea
Dynamsoft Support Team
Dynamsoft - The leading provider of version control solution and TWAIN SDK
Source Control Software | Software Configuration Management | SCM Solution | Issue Tracking
SourceSafe (VSS) Remote/Web/Internet Access | SourceSafe (VSS) Replacement/Alternative | SourceSafe (VSS) Hosting|TFS Hosting

Follow me @Twitter, Facebook
Image


Top
 Profile  
 
 Post subject: Re: Binary Files Differ
PostPosted: Fri Jun 18, 2010 1:05 am 
Offline

Joined: Fri Jun 18, 2010 1:01 am
Posts: 1
You can use a '-a' option. '-a' considers all contents as plain texts.

Usage : diff -a file1 file2


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

It is currently Wed May 16, 2012 5:49 pm


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

Copyright © 2010 Dynamsoft Corporation. All Rights Reserved. | Knowledge Base | Source Control Blog