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

Re: [PATCH] svn2rss.py: Set default value for 'svn_path' based on PATH

From: C. Michael Pilato <cmpilato_at_collab.net>
Date: 2006-07-07 16:57:05 CEST

Bhuvaneswaran Arumugam wrote:
> Hello,
>
> Please find attached the patch to set default value for 'svn_path' based
> on PATH environment variable.
>
> [[[
> Set default value for 'svn_path' based on PATH environment variable
>
> * contrib/hook-scripts/svn2rss.py
> (get_svn_path): New function to scan the PATH environment variable and
> set the 'svn_path' variable. Exit, if the command is not found
> (SVN2RSS.__init__): Donot check if 'svn_path' is not None since we
> set this value now
> (main): If 'svn_path' is None, call get_svn_path()
> ]]]

This whole change is unnecessary. The code already in place uses "svn_path
+ /svnlook" if the user provides svn_path, or just runs "svnlook" (which is
found automatically via a PATH search) otherwise. There's no reason to
search through PATH to verify that the user's input is correct, and in fact,
doing so makes this script less likely to work on Windows systems (where the
program could be "svnlook.exe", "svnlook.bat", etc.).

-- 
C. Michael Pilato <cmpilato@collab.net>
CollabNet   <>   www.collab.net   <>   Distributed Development On Demand

Received on Fri Jul 7 16:57:52 2006

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