svn: /web/doc-editor/trunk/php/ class.php

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Wed, 11 Nov 2009 21:00:19 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=290526

Log:
Remove updateRepository's method from class.php. This method is present in RepositoryManager.php as updateRepository's method

Changed paths:
    U   web/doc-editor/trunk/php/class.php

Modified: web/doc-editor/trunk/php/class.php
===================================================================
--- web/doc-editor/trunk/php/class.php	2009-11-11 20:58:20 UTC (rev 290525)
+++ web/doc-editor/trunk/php/class.php	2009-11-11 21:00:19 UTC (rev 290526)
@@ -465,24 +465,6 @@
     }

     /**
-     * Update the repository to sync our local copy. Simply exec an "cvs -f -q update -d -P" command.
-     * As this exec command take some time, we start by creating a lock file, then run the command, then delete this lock file.
-     * As it, we can test if this command has finish, or not.
-     */
-    function updateRepository() {
-        // We place a lock file to test if update is finish
-        $lock = new LockFile('lock_update_repository');
-        if ($lock->lock()) {
-            // We exec the update
-            $cmd = "cd ".DOC_EDITOR_CVS_PATH."; cvs -f -q update -d -P . ;";
-            exec($cmd);
-        }
-
-        // We remove the lock file
-        $lock->release();
-    }
-
-    /**
      * Parse a string to find all attributs.
      *
      * @param $tags_attrs The string to parse.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.