~ubuntu-branches/ubuntu/trusty/subversion/trusty-proposed

« back to all changes in this revision

Viewing changes to tools/examples/svnshell.py

  • Committer: Package Import Robot
  • Author(s): Andy Whitcroft
  • Date: 2012-06-21 15:36:36 UTC
  • mfrom: (0.4.13 sid)
  • Revision ID: package-import@ubuntu.com-20120621153636-amqqmuidgwgxz1ly
Tags: 1.7.5-1ubuntu1
* Merge from Debian unstable.  Remaining changes:
  - Create pot file on build.
  - Build a python-subversion-dbg package.
  - Build-depend on python-dbg.
  - Build-depend on default-jre-headless/-jdk.
  - Do not apply java-build patch.
  - debian/rules: Manually create the doxygen output directory, otherwise
    we get weird build failures when running parallel builds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
#               the filesystem.
5
5
#
6
6
######################################################################
7
 
#
8
 
# Copyright (c) 2000-2004, 2008-2009 CollabNet.  All rights reserved.
9
 
#
10
 
# This software is licensed as described in the file COPYING, which
11
 
# you should have received as part of this distribution.  The terms
12
 
# are also available at http://subversion.tigris.org/license-1.html.
13
 
# If newer versions of this license are posted there, you may use a
14
 
# newer version instead, at your option.
15
 
#
 
7
#    Licensed to the Apache Software Foundation (ASF) under one
 
8
#    or more contributor license agreements.  See the NOTICE file
 
9
#    distributed with this work for additional information
 
10
#    regarding copyright ownership.  The ASF licenses this file
 
11
#    to you under the Apache License, Version 2.0 (the
 
12
#    "License"); you may not use this file except in compliance
 
13
#    with the License.  You may obtain a copy of the License at
 
14
#
 
15
#      http://www.apache.org/licenses/LICENSE-2.0
 
16
#
 
17
#    Unless required by applicable law or agreed to in writing,
 
18
#    software distributed under the License is distributed on an
 
19
#    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
20
#    KIND, either express or implied.  See the License for the
 
21
#    specific language governing permissions and limitations
 
22
#    under the License.
16
23
######################################################################
17
24
#
18
25
 
73
80
      return
74
81
    ### be nice to get some paging in here.
75
82
    stream = fs.file_contents(self.root, catpath)
76
 
    while 1:
 
83
    while True:
77
84
      data = core.svn_stream_read(stream, core.SVN_STREAM_CHUNK_SIZE)
78
85
      sys.stdout.write(data)
79
86
      if len(data) < core.SVN_STREAM_CHUNK_SIZE: