Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual SVN diff and compare tools for Linux [closed]

Tags:

git

linux

diff

svn

Which is the best Visual SVN Diff displayer for Linux.

BeyondCompare and VisualSVN 1.5 work well on Windows. What are the equivalent tools for Linux? (Specifically Ubuntu).

I know command line diff works; But I'd like multiple column syntax highlighted and differences.

Better if the tool has a support for Git and Hg as well.

like image 231
lprsd Avatar asked Sep 11 '25 09:09

lprsd


2 Answers

I have been using meld for this purpose, in Ubuntu you can just do:

apt-get install meld

I think it only does two-way compare, but usually that is only what you need, and only what the diff shows you anyway.

When you get a conflict using SVN and have to do a merge, you usually get 4 files AFAIR.

  • file.mine - The file with your local changes as before svn update.
  • file.r<n> - The revision on which you created your local changes.
  • file.r<n+m> - The revision you updated to from svn, usually HEAD.
  • file - Subversions attempt at merging your changes into the updated file.

So to use meld to merge your changes in, you would do:

meld file.mine file.<n+m>

And merge either your changes into the revision updated from svn, or the other way around. It is usually easier to merge the file with the fewest changes to the file with most changes.

And last you would override file with the merged file and do a:

svn resolved file
like image 124
Bjarke Freund-Hansen Avatar answered Sep 12 '25 23:09

Bjarke Freund-Hansen


Diffuse supports Subversion, Mercurial, Git, and several other version control systems. It works on Windows too. For Ubuntu, just install the .deb package with "$ sudo dpkg -i diffuse-*.deb" and then run "diffuse -m" to view your changes or fix merge conflicts.


Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!