Subject: python-subversion: svnshell crashes on malformed "setrev" command
Package: python-subversion
Version: 1.4.0-4
Severity: normal

Hello,

the svnshell program crashes with an ugly error message, if you run it with a
valid SVN repository as the parameter, and then issue a "setrev" command with
a non-integer parameter or no parameter at all.


[EMAIL PROTECTED]:~$ svnshell /home/metaur/SVEN
<rev: 3 />$ setrev
Traceback (most recent call last):
  File "/usr/bin/svnshell", line 354, in ?
    main()
  File "/usr/bin/svnshell", line 351, in main
    SVNShell(sys.argv[1])
  File "/usr/bin/svnshell", line 40, in __init__
    self.cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/bin/svnshell", line 184, in do_setrev
    print "Error setting the revision to '" + str(rev) + "'."
UnboundLocalError: local variable 'rev' referenced before assignment
[EMAIL PROTECTED]:~$ svnshell /home/metaur/SVEN
<rev: 3 />$ setrev lamex
Traceback (most recent call last):
  File "/usr/bin/svnshell", line 354, in ?
    main()
  File "/usr/bin/svnshell", line 351, in main
    SVNShell(sys.argv[1])
  File "/usr/bin/svnshell", line 40, in __init__
    self.cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/bin/svnshell", line 184, in do_setrev
    print "Error setting the revision to '" + str(rev) + "'."
UnboundLocalError: local variable 'rev' referenced before assignment
[EMAIL PROTECTED]:~$ svnshell /home/metaur/SVEN
<rev: 3 />$ setrev 1.38
Traceback (most recent call last):
  File "/usr/bin/svnshell", line 354, in ?
    main()
  File "/usr/bin/svnshell", line 351, in main
    SVNShell(sys.argv[1])
  File "/usr/bin/svnshell", line 40, in __init__
    self.cmdloop()
  File "/usr/lib/python2.4/cmd.py", line 142, in cmdloop
    stop = self.onecmd(line)
  File "/usr/lib/python2.4/cmd.py", line 219, in onecmd
    return func(arg)
  File "/usr/bin/svnshell", line 184, in do_setrev
    print "Error setting the revision to '" + str(rev) + "'."
UnboundLocalError: local variable 'rev' referenced before assignment
[EMAIL PROTECTED]:~$


// Ulf Harnhammar

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.12-1-686
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ISO-8859-1)

Versions of packages python-subversion depends on:
ii  libapr1                      1.2.7-6     The Apache Portable Runtime Librar
ii  libc6                        2.3.6.ds1-4 GNU C Library: Shared libraries
ii  libsvn1                      1.4.0-4     Shared libraries used by Subversio
ii  python                       2.4.3-11    An interactive high-level object-o
ii  python-support               0.5.2       automated rebuilding support for p
ii  subversion                   1.3.2-5+b1  Advanced version control system

python-subversion recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to