On (2006-05-18 12:19 +0200), Anders J. Munch wrote:
> From: Saku Ytti [mailto:saku+svn@ytti.fi]
>
> > Quick scan of pysvn suggests same problem is there.
>
> Try reducing scanning speed :-)
Oh super. I wonder why I can't(?) do that in perl[0]. Thats definitely acceptable
solution, even though I need to call client.cat 4k times in worst cases.
Just due to efficiency reasons don't want to call the script inside
perl script so I have to consider porting the script.
[0]
$ctx->cat(\*FILEHANDLE, $target, $revision, $pool);
Outputs the content of the file identified by $target and
$revision to the FILEHANDLE.
FILEHANDLE is a reference to a filehandle.
If $target is not a local path and if $revision is 'PREV' (or
some other kind that requires
a local path), then an error will be raised, because the desired
revision can not be deter-
mined.
> Python 2.4.3 (#69, Mar 29 2006, 17:35:34) [MSC v.1310 32 bit (Intel)] on win32
> Type "help", "copyright", "credits" or "license" for more information.
> >>> import pysvn
> >>> pysvn.version
> (1, 4, 2, 640)
> >>> client = pysvn.Client()
> >>> anarray = client.cat('http://svn.collab.net/repos/svn/trunk/README')
> >>> print anarray[:110]
>
> Subversion, a version control system.
> =====================================
>
> - Anders
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
--
++ytti
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu May 18 13:16:44 2006