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

[PATCH] : make svnshell errors less confusing

From: David Kimdon <david_at_kimdon.org>
Date: 2004-02-07 15:36:30 CET

Hi,

This patch came to me by way of Roland Illig and the Debian BTS :

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=230534

I think it would be a welcome addition to Subversion. Any seconds?

-David

* tools/examples/svnshell.py : Make the error messages that svnshell
  emits for unknown commands less confusing.
  Roland Illig <roland.illig@gmx.de>.

Index: upstream/tools/examples/svnshell.py
===================================================================
--- upstream.orig/tools/examples/svnshell.py 2003-12-29 18:51:28.000000000 +0100
+++ upstream/tools/examples/svnshell.py 2004-02-07 15:16:31.964080873 +0100
@@ -45,14 +45,8 @@
   def postcmd(self, stop, line):
     self._setup_prompt()
 
- _errors = ["Huh?",
- "Whatchoo talkin' 'bout, Willis?",
- "Say what?",
- "Nope. Not gonna do it.",
- "Ehh...I don't think so, chief."]
-
   def default(self, line):
- print self._errors[randint(0, len(self._errors) - 1)]
+ print "Unknown command."
     
   def do_cat(self, arg):
     """dump the contents of a file"""

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Feb 7 15:36:47 2004

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

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