Go Back   Scooter Forums > Beyond Compare 3 Discussion > Version Control
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 30-Jul-2008, 02:54 AM
orip orip is offline
New User
 
Join Date: Jul 2008
Posts: 1
Default TortoiseSVN integration

Hi,

Sorry if I'm rehashing this, but I couldn't find updated command-lines to configure TortoiseSVN's external diff and merge with for BC3.

Anyone have them?

Thanks!
Reply With Quote
  #2  
Old 30-Jul-2008, 02:31 PM
Craig Craig is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 2,097
Default

Diff:
"C:\Program Files\Beyond Compare 3\BComp.exe" %base %mine /title1=%bname /title2=%yname /leftreadonly

Merge (v3 Pro):
"C:\Program Files\Beyond Compare 3\BComp.exe" %mine %theirs %base %merged /title1=%yname /title2=%tname /title3=%bname /title4=%mname

Merge (v3 Std):
"C:\Program Files\Beyond Compare 3\BComp.exe" %mine %theirs /mergeoutput=%merged
__________________
Craig P Scooter Software

Last edited by Craig; 31-Jul-2008 at 08:27 AM.
Reply With Quote
  #3  
Old 18-Sep-2008, 05:07 PM
outspokengolem outspokengolem is offline
New User
 
Join Date: Sep 2008
Posts: 1
Default

Is there any way to automatically svn resolved the merged file after it is saved?
Reply With Quote
  #4  
Old 26-Sep-2008, 04:57 PM
Craig Craig is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 2,097
Default

Yes, you can auto-resolve using TortoiseSVN, but it requires a bit of setup to do.
  1. Save the attached text file in your BC3 install directory as "BComp.vbs".
  2. If you've installed somewhere besides C:\Program Files\Beyond Compare 3 you'll need to modify the first line, and if you installed TortoiseSVN to somewhere other than C:\Program Files\TortoiseSVN you'll need to modify the second from last line as well.
  3. Follow the steps for setting up 3-way merge for TortoiseSVN from our VCS page, except add "wscript " at the start of the command line and change "BComp.exe" to "BComp.vbs", so you end up with:
    Code:
    wscript "C:\Program Files\Beyond Compare 3\BComp.vbs"
      %mine %theirs %base %merged /title1=%yname /title2=%tname
      /title3=%bname /title4=%mname

If you save the merge file it will resolve it automatically. If you want it to ask for confirmation remove /noquestion from the second to last line. if you exit without saving it won't resolve.
Attached Files
File Type: txt BComp.vbs.txt (435 Bytes, 486 views)
__________________
Craig P Scooter Software
Reply With Quote
  #5  
Old 13-Oct-2008, 07:28 AM
stucampbell stucampbell is offline
New User
 
Join Date: Oct 2008
Posts: 1
Default

Thanks. This is much easier to use than the Tortoise Diff tool.

I had to modify the first line to get it to work. You need quotes because of the spaces in the path.

Code:
SCmdLine = """C:\Program Files\Beyond Compare 3\BComp.exe "" "
Reply With Quote
  #6  
Old 15-Oct-2008, 10:59 AM
VOODOOS!L VOODOOS!L is offline
New User
 
Join Date: Oct 2008
Posts: 2
Default

could you provide more information on this quick reply? i understand how to install it, but how is it used? what is the benefit of this compared to the other merge commandline?
Reply With Quote
  #7  
Old 15-Oct-2008, 11:06 AM
Craig Craig is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 2,097
Default

By using that command line and the associated VBscript file BC will tell TortoiseSVN that the merge was successful so TortoiseSVN will remove the "filename.txt.mine", "filename.txt.r123", and "filename.txt.r234" files and change the file's icon from the "conflict" icon to the "changed" icon. If you use the command line we normally suggest you'll need to manually use the TortoiseSVN->Resolved... menu item after you save the merge result and exit BC.
__________________
Craig P Scooter Software
Reply With Quote
  #8  
Old 16-Oct-2008, 06:14 AM
VOODOOS!L VOODOOS!L is offline
New User
 
Join Date: Oct 2008
Posts: 2
Default

Great. Thanks for quick reply. Can be handy indeed.
Reply With Quote
  #9  
Old 07-Aug-2009, 09:18 AM
free2create free2create is offline
Visitor
 
Join Date: Oct 2007
Location: Washington, DC
Posts: 7
Question

Quote:
Originally Posted by Craig View Post
Yes, you can auto-resolve using TortoiseSVN, but it requires a bit of setup to do.
  1. Save the attached text file in your BC3 install directory as "BComp.vbs".
  2. If you've installed somewhere besides C:\Program Files\Beyond Compare 3 you'll need to modify the first line, and if you installed TortoiseSVN to somewhere other than C:\Program Files\TortoiseSVN you'll need to modify the second from last line as well.
  3. Follow the steps for setting up 3-way merge for TortoiseSVN from our VCS page, except add "wscript " at the start of the command line and change "BComp.exe" to "BComp.vbs", so you end up with:
    Code:
    wscript "C:\Program Files\Beyond Compare 3\BComp.vbs"
      %mine %theirs %base %merged /title1=%yname /title2=%tname
      /title3=%bname /title4=%mname

If you save the merge file it will resolve it automatically. If you want it to ask for confirmation remove /noquestion from the second to last line. if you exit without saving it won't resolve.
Are these steps to use with TortoiseSVN still necessary ?
Is the BComp.vbs file the same as the BComp.com/exe that ships with BC3 now ?
__________________
-Rob
-------------------------
Rob Leland
Reply With Quote
  #10  
Old 10-Aug-2009, 04:01 PM
Aaron Aaron is offline
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,430
Default

Hello,

No, this is not built-in to BC3. You still need the vbscript if you want it to resolve automatically.

Otherwise, you can select the files after the merge, and mark as Resolved manually.
__________________
Aaron P Scooter Software
Reply With Quote
Reply

Tags
subversion, svn, tortoisesvn

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.