Use a different diff command with CVS?

2019-02-13 12:37发布

问题:

Is it possible to use a different diff program with CVS? I'd like to use something like meld to give me a side-by-side graphical view of the repository and my changes. It's out of my control to use a different CMS. What would be ideal is some undocumented command line argument that would work like this:

cvs diff -prog /usr/bin/meld foo.cc

This would give me a diff of my checked out, modified version of foo.cc with the repository version, but using the diff program meld.

I realize an undocumented command line argument is unlikely, so if you have to hack it together, that works for me.

回答1:

I use tkcvs and tkdiff (not the lastest version either)

  • http://www.twobarleycorns.net/tkcvs.html
  • http://tkdiff.sourceforge.net/
  • http://wiki.tcl.tk/3773

the cool thing is that tkcvs also supports subversion.

tkdiff works on the command line and takes cvs tags...

  • tkdiff -rfoo_v5_0 -rfoo_v6_5 silly.c (compare two different versions than the one in your local directory)
  • tkdiff spring.h (compare my local version to the repository)
  • tkdiff -r1.6 happy.c (compare my local version to a specific repository version)


回答2:

If you use WinCVS, you can setup a Diff application such as WinMerge in the preferences.

In WinCVS preferences, tab WinCVS, "External diff program"



回答3:

Meld supports this natively. See "Working Copy" screenshot from meld.sourceforge.net



回答4:

I finally found the cvsmenu plugin for Vim. It works like a charm for me.



标签: diff cvs meld