Re: [viewvc-users] ViewVC CVS diff displays No changes instead of diff

"C. Michael Pilato" <[email protected]> Fri, 6 Jul 2012 11:45:25 -0400
Newsgroups gmane.comp.version-control.cvs.viewcvs.user
Organization CollabNet, Inc.
Message-ID <4FF70815.9000408__44058.7733210579$1341589553$gmane$org@collab.net>
On 07/06/2012 04:35 AM, Zoltan Csoka wrote:

> I tried to put print statements (and later file write ones) to the
> lib/vclib/__init__.py where the "def _diff_args(type, options)" is to
> print out the rcsdiff arguments to be able to compare it to the command
> line ones, but those printouts were ignored and no output was written

I would play around in lib/vclib/ccvs/bincvs.py:BinCVSRepository.rawdiff()
using some file-based debugging statements such as:

   open('/path/to/debug/logfile', 'a').write("This is a debug statement\n")

For example, you might add the line below (which appends a stringified form
of the list "args" to a file):

    open('/tmp/VIEWVCLOG', 'a').write(str(args) + "\n")

just before this statement in the function:

    fp = self.rcs_popen('rcsdiff', args, 'rt')

When I do so and then view a CVS diff, the file /tmp/VIEWVCLOG is created
(if it didn't already exist), and the following line is appended to it:

   ['-u', '-r1.10', '-r1.11', '/usr/local/cvs/ViewCVS/viewcvs/CHANGES,v']

Be aware that if you're running ViewVC under mod_python or mod_wsgi, you
might have to restart your web server every time you make a change to a
Python module in order for your new code to get executed.

-- 
C. Michael Pilato <[email protected]>
CollabNet   <>   www.collab.net   <>   Enterprise Cloud Development

------------------------------------------------------
http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2976869

To unsubscribe from this discussion, e-mail: [[email protected]].
signature.asc (application/pgp-signature, 198 B)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAk/3CBUACgkQokEGqRcG/W7P/QCgkbrZmci11kGKAA3B1/iL63UB
B2MAoKyuj58KvTRxgDcG2ZJYaG38O/hK
=WnBA
-----END PGP SIGNATURE-----