<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">Index: tools/examples/svnshell.py
===================================================================
--- tools/examples/svnshell.py	(revision 20873)
+++ tools/examples/svnshell.py	(working copy)
@@ -121,7 +121,7 @@
     keys = entries.keys()
     keys.sort()
 
-    print "   REV   AUTHOR  NODE-REV-ID     SIZE         DATE NAME"
+    print "   REV   AUTHOR     NODE-REV-ID     SIZE         DATE NAME"
     print "----------------------------------------------------------------------------"
 
     for entry in keys:
@@ -146,8 +146,8 @@
       else:
         date = self._format_date(date)
      
-      print "%6s %8s &lt;%10s&gt; %8s %12s %s" % (created_rev, author[:8],
-                                            node_id, size, date, name)
+      print "%6s %8s %15s %8s %12s %s" % (created_rev, author[:8],
+                                            "&lt;" + node_id + "&gt;", size, date, name)
   
   def do_lstxns(self, arg):
     """list the transactions available for browsing"""
@@ -184,10 +184,14 @@
   def do_setrev(self, arg):
     """set the current revision to view"""
     try:
-      rev = int(arg)
+      if len(arg) == 0:
+        rev = int(fs.youngest_rev(self.fs_ptr))
+        print "Setting the revision to youngest revision '%d'." % rev
+      else:
+        rev = int(arg)
       newroot = fs.revision_root(self.fs_ptr, rev)
     except:
-      print "Error setting the revision to '" + str(rev) + "'."
+      print "Error setting the revision to '" + arg + "'." 
       return
     fs.close_root(self.root)
     self.root = newroot
</pre></body></html>