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

tools/examples/svnshell.py: bug(?)+fix

From: Peter Ericson <argblarg_at_gmail.com>
Date: 2005-12-28 06:30:21 CET

Hi, as per instructions at
http://subversion.tigris.org/project_issues.html I'm posting here
first, I don't usually follow this list but have just subscribed.

This bug wouldn't usually appear unless user is trying to cat a file
that is larger than core.SVN_STREAM_CHUNK_SIZE -- for me that's 102400
bytes.

Regards,

Peter Ericson

Index: svnshell.py
===================================================================
--- svnshell.py (revision 17939)
+++ svnshell.py (working copy)
@@ -78,6 +78,7 @@
     stream = fs.file_contents(self.root, catpath)
     while filelen > core.SVN_STREAM_CHUNK_SIZE:
       print core.svn_stream_read(stream, int(core.SVN_STREAM_CHUNK_SIZE))
+ filelen -= core.SVN_STREAM_CHUNK_SIZE
     print core.svn_stream_read(stream, int(filelen))

   def do_cd(self, arg):

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Dec 28 06:33:05 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.