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

Re: cvs2svn.py patch

From: Zack Weinberg <zack_at_codesourcery.com>
Date: 2002-04-14 19:39:52 CEST

On Sun, Apr 14, 2002 at 07:11:30PM +0200, Marcus Comstedt wrote:
>
> No need to escape all characters. If the argument is enclosed in
> single quotes, then only single quotes need to be escaped. Just do
>
> pipe = os.popen('co -q -p%s \'%s\'' %
> (r, string.replace(f, "'","'\"'\"'")),
> 'r', 102400)

Or for a little less line-noise,

        (r, string.replace(f, "'", "'\\''")),

zw

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 14 19:40:47 2002

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