Re: [viewvc-users] ViewVC CVS diff displays No changes instead of diff
Zoltan Csoka <[email protected]> Mon, 9 Jul 2012 15:02:53 +0200
| Newsgroups | gmane.comp.version-control.cvs.viewcvs.user |
|---|---|
| Message-ID | <OFC8753A76.790E2387-ONC1257A36.0046A2F1-C1257A36.0047ADE1@swissre.com> |
Hi Michael, Actually I am a bit embarrassed because of this issue. I had an RCS package compiled on the server, but the diff did not work, so I have compiled the rcs 5.8 again, I replaced my old rcs, but the diff still did not work from ViewVC, although the command line diff worked perfectly. I suspected it to be some parameters, which is not compatible with the new RCS, therefore I wanted to debug the rcs arguments in ViewVC. The debug showed me that the arguments are perfect, but something in the chain is not. Since I use the standalone server (no Apache, cgi, etc), my suspicion got on the browser. Clearing all cache in IE7 (company browser, not my free choice) the diff started to work fine. So actually my problem was related to the IE7 cache and not to ViewVC. The only enhancement I would propose is to disable cache on code view and diff pages, although caching problems should occur rarely if the source control system is used properly. Kind Regards and thanks again for your help Zoltan From: "C. Michael Pilato" <[email protected]> To: <[email protected]>, Cc: <[email protected]> Date: 09/07/2012 14:49 Subject: Re: [viewvc-users] ViewVC CVS diff displays No changes instead of diff 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 [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. ------------------------------------------------------ http://viewvc.tigris.org/ds/viewMessage.do?dsForumId=4255&dsMessageId=2981006 To unsubscribe from this discussion, e-mail: [[email protected]].