Re: [viewvc-users] ViewVC CVS diff displays No changes instead of diff
"C. Michael Pilato" <[email protected]> Mon, 9 Jul 2012 08:48:48 -0400
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Organization | CollabNet, Inc. |
| Message-ID | <[email protected]> |
Glad that the debugging trick worked out for you. Are you able to share the source of the problem so that others who might experience the same thing know where to look? Is there a bug in ViewVC that needs to be addressed? On 07/09/2012 03:54 AM, [email protected] wrote: > Hi Michael, > > Many thanks for your tips, I have cornered the problem, the debug logs > worked fine. > > Kind Regards, > > Zoltan > > > > From: "C. Michael Pilato" <[email protected]> > To: Zoltan Csoka <[email protected]>, > Cc: <[email protected]> > Date: 06/07/2012 17:45 > Subject: Re: [viewvc-users] ViewVC CVS diff displays No changes > instead of diff > ---------------------------------------------------------------------------- > > > > 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 > > > > [attachment "signature.asc" deleted by Zoltan Csoka/External] > > > This e-mail, including attachments, is intended for the person(s) or company > named and may contain confidential and/or legally privileged information. > Unauthorized disclosure, copying or use of this information may be unlawful > and is prohibited. If you are not the intended recipient, please delete this > message and notify the sender. > All incoming and outgoing e-mail messages are stored in the Swiss Re > Electronic Message Repository. > If you do not wish the retention of potentially private e-mails by Swiss Re, > we strongly advise you not to use the Swiss Re e-mail account for any > private, non-business related communications. -- C. Michael Pilato <[email protected]> CollabNet <> www.collab.net <> Enterprise Cloud Development ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2980988 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/600UACgkQokEGqRcG/W7wigCeIsvWWVLJ5FbHO/RaDOInBheB QeIAn0SeCsj3gJWsp47AndguqobpeKrk =D+Pp -----END PGP SIGNATURE-----