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 6:53 pm




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: external merge tool for SourceAnywhere
PostPosted: Wed Sep 21, 2011 1:10 pm 
Offline

Joined: Wed Sep 21, 2011 12:34 pm
Posts: 7
Hi, what external merge tools (3-way merge) does SourceAnywhere(6.1.1) support? And it would be great if you can give me an example about how to configure it in "External Programs" Tab. Thanks!


Top
 Profile  
 
 Post subject: Re: external merge tool for SourceAnywhere
PostPosted: Thu Sep 22, 2011 5:09 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi ychen,

SourceAnywhere(6.1.1) supports external merge tools like WinMerge, DiffMerge, etc.

To configure the external tool, you can check out this article:
http://www.dynamsoft.com/help/SAW/COp_E ... ptions.htm

I'll do some tests and provide an example.

_________________
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: external merge tool for SourceAnywhere
PostPosted: Thu Sep 22, 2011 6:32 am 
Offline

Joined: Wed Sep 21, 2011 12:34 pm
Posts: 7
Thanks for the reply!

I've read that article, and it sounds not very straight forward to me. For example, I've tried with Beyond Compare, and for Beyond Compare, the command for diff two files are: BCompare.exe file1 file2. So I entered “%FIRST_FILE%” “%SECOND_FILE%” for "Arguments for diff files". But that does not work properly(The Beyond Compare program runs, but no files are opened). Later I searched on internet, and found an article and entered the following string as it mentioned:
/readonly /title1=”%FIRST_LABEL%” /title2=”%SECOND_LABEL%” “%FIRST_FILE%” “%SECOND_FILE%”
And this works fine! By reading the article you mentioned, I do not know why my original configuration does not work, and where those "/title1", "titile2" come from. Maybe I misunderstood sth here?

The other thing is it seems that SoureAnywhere does not support 3-way merge with beyond compare, right? If it does, please let me know how to configure "Arguments for 3-way merge". Otherwise, it would be great if you could give me an example configuration of WinMerge.

I really apprieciate your help!


Top
 Profile  
 
 Post subject: Re: external merge tool for SourceAnywhere
PostPosted: Thu Sep 22, 2011 11:44 pm 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi ychen,

ychen wrote:
And this works fine! By reading the article you mentioned, I do not know why my original configuration does not work, and where those "/title1", "titile2" come from. Maybe I misunderstood sth here?

Actually the article only provides the parameters available for configuration. Since different diff/merge tools might have their own different arguments, we didn't list them.

ychen wrote:
The other thing is it seems that SoureAnywhere does not support 3-way merge with beyond compare, right? If it does, please let me know how to configure "Arguments for 3-way merge". Otherwise, it would be great if you could give me an example configuration of WinMerge.

I tried Beyond Compare, and seems the below configurations work fine:
Code:
Application for diff/merge:
D:\Program Files (x86)\Beyond Compare 3\BComp.exe

Arguments for diff files:
/readonly /title1="%FIRST_LABEL%" /title2="%SECOND_LABEL%" "%FIRST_FILE%" "%SECOND_FILE%"

Arguments for Three-way merge:
"%YOURS_FILE%" "%THEIRS_FILE%" "%BASE_FILE%" "%RESULT_FILE%" /title1="%FIRST_LABEL%" /title2="%SECOND_LABEL%""

By the way, below is how to configure WinMerge:

Code:
Application for diff/merge:
D:\Program Files (x86)\WinMerge\WinMergeU.exe

Arguments for diff files:
"%FIRST_FILE%" "%SECOND_FILE%"   -dl "%FIRST_LABEL%" -dr "%SECOND_LABEL% "

Arguments for Three-way merge:
-merge "%BASE_FILE%"  "%THEIRS_FILE%"  "%YOURS_FILE%"  "%RESULT_FILE%"  -dl "%FIRST_LABEL%" -dr "%SECOND_LABEL% "

_________________
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: external merge tool for SourceAnywhere
PostPosted: Tue Oct 04, 2011 7:24 am 
Offline

Joined: Wed Sep 21, 2011 12:34 pm
Posts: 7
Hi Catherine,

Sorry for the late response. I was on a vacation.

Thanks a lot for your solution! This will save me lots of time!


Top
 Profile  
 
 Post subject: Re: external merge tool for SourceAnywhere
PostPosted: Tue Oct 04, 2011 9:48 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
You are welcome. :)

_________________
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: external merge tool for SourceAnywhere
PostPosted: Tue Oct 11, 2011 8:58 am 
Offline

Joined: Wed Sep 21, 2011 12:34 pm
Posts: 7
Hi Catherine,

I tried the setting you recommend for beyondcompare 3-way merge:
"%YOURS_FILE%" "%THEIRS_FILE%" "%BASE_FILE%" "%RESULT_FILE%" /title1="%FIRST_LABEL%" /title2="%SECOND_LABEL%""

It doesn't work. I noticed that there is one more " at the end, so I removed that. But still not working, the same results.

Beyond compare is opened, but it gives "Error Opening File".

It opens three panel, the link of left one is:C:\NMS\application\src\com\axerra\access\snmp\api\trap\TrapListenerImpl.java,
middle one:C:\Documents and Settings\ychen\Application Data\Dynamsoft\SourceAnywhere for VSS\temp\~_~_~_CheckinMergeFile228145SVHighLevel12442997244580S2A3W~_.tmp,
right one:C:\Documents and Settings\ychen\Application Data\Dynamsoft\SourceAnywhere for VSS\temp\~_~_~_CheckinMergeFile15705SVHighLevel12442997244580S2A3W~_.tmp

Did I miss sth?

Thanks,
Ying


Top
 Profile  
 
 Post subject: Re: external merge tool for SourceAnywhere
PostPosted: Wed Oct 12, 2011 1:52 am 
Offline
User avatar

Joined: Tue Mar 08, 2005 12:23 am
Posts: 1489
Hi ychen,

Which application did you specify in "Application for diff/merge"?

If it's
Code:
C:\Program Files\Beyond Compare 3\BCompare.exe


Please change it to:
Code:
C:\Program Files\Beyond Compare 3\BComp.exe

and see if this makes any difference.

Regards,

_________________
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  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 8 posts ] 

It is currently Wed May 16, 2012 6:53 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:  
cron

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