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

[email protected] (Yannick Torres)
Newsgroups php.doc.web
Message-ID <[email protected]>
yannick                                  Sat, 13 Mar 2010 11:09:14 +0000

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

Log:
Add svn props for each file we update

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

Modified: web/doc-editor/trunk/php/SvnClient.php
===================================================================
--- web/doc-editor/trunk/php/SvnClient.php	2010-03-13 11:07:49 UTC (rev 296143)
+++ web/doc-editor/trunk/php/SvnClient.php	2010-03-13 11:09:14 UTC (rev 296144)
@@ -467,18 +467,21 @@

         // Buil the command line

-        $cmdCreate = $cmdDelete = '';
+        $cmdCreate = $cmdDelete = $cmdUpdate = '';
+
         if (trim($filesCreate) != '') {
             $cmdCreate = "svn add $filesCreate ; svn propset svn:keywords \"Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL\" $filesCreate ; svn propset svn:eol-style \"native\" $filesCreate ; ";
         }
         if (trim($filesDelete) != '') {
             $cmdDelete = "svn delete $filesDelete ; ";
         }
+        if (trim($filesUpdate) != '') {
+            $cmdUpdate = "svn propset svn:keywords \"Id Rev Revision Date LastChangedDate LastChangedRevision Author LastChangedBy HeadURL URL\" $filesUpdate ; svn propset svn:eol-style \"native\" $filesUpdate ; ";
+        }

-        // Escape single quote
-        $log = str_replace("'", "\\'", $log);
         $cmd = $cmdDelete.
                $cmdCreate.
+               $cmdUpdate.
                "svn ci --no-auth-cache --non-interactive -F $pathLogFile --username $vcsLogin --password $vcsPasswd $filesUpdate $filesDelete $filesCreate";

         $cmd = 'cd '.$appConf[$project]['vcs.path'].'; ' .$cmd;
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.