--- SVN.php.old	2004-06-07 20:09:30.000000000 +0200
+++ SVN.php	2005-08-07 18:54:30.985915016 +0200
@@ -267,6 +267,14 @@
     var $_prepared = false;
 
     /**
+     * Last prepared argument and switches (md5sum)
+     *
+     * @var     string
+     * @access  private
+     */
+    var $_last_args_switch = '';
+
+    /**
      * Fully prepared command string.
      * 
      * @var     string
@@ -613,8 +621,10 @@
         if (sizeof($args) > 0) {
             $this->args = $args;
         }
-        if (!$this->_prepared) {
+        if (!$this->_prepared || 
+            md5(implode('-', $args) . implode('-', $switches)) != $this->_last_args_switch) {
             $this->prepare();
+            $this->_last_args_switch = md5(implode('-', $args) . implode('-', $switches));
         }
         $out        = array();
         $ret_var    = null;
@@ -691,4 +701,4 @@
 }
 
 // }}}
-?>
\ No newline at end of file
+?>
