[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Empty diffs in ViewCVS with Subversion under WinME

From: Andrew MacLennan <ajm_at_tardis.ed.ac.uk>
Date: 2005-05-03 12:12:22 CEST

[ Also cross-posting to the Subversion Users mailing list, as the fix for the
problem I was having may of interest there as well ]

> I've been working on setting up ViewCVS with a local Subversion repository on
> a WinME box for a few weeks now. I've already managed to sort out several
> other problems, and have now got to the stage where the standalone.py ViewCVS
> server appears to be working fine, except that viewing changes between
> revisions of files just reports 'No changes'.

> I've already had a go at trying to trace the problem : my best guess at the
> moment (which may well be wrong) is that when fs.py (in the Subversion Python
> bindings) uses popen2() to actually pass the diff command to the Win32
> command shell, it is making some assumptions about the Win2k/XP shell
> (cmd.exe) which do not hold true for the Win9x/ME shell (command.exe),

         Turns out my guess was correct : it seems that while cmd.exe will
accept a command line entirely surrounded by quote-marks (""), command.exe will
not. So, the fix (for me) was simply the following change to svn\fs.py (in the
Subversion Python bindings) :

< return '"' + string.join(map(_escape_msvcrt_shell_arg, argv), " ") + '"'

---
> return string.join(map(_escape_msvcrt_shell_arg, argv), " ")
Andy MacLennan.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue May 3 12:26:16 2005

This is an archived mail posted to the Subversion Users mailing list.