manifoldcf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kwri...@apache.org
Subject svn commit: r1341840 - /incubator/lcf/site/update-site.py
Date Wed, 23 May 2012 11:38:12 GMT
Author: kwright
Date: Wed May 23 11:38:12 2012
New Revision: 1341840

URL: http://svn.apache.org/viewvc?rev=1341840&view=rev
Log:
Add status messages

Modified:
    incubator/lcf/site/update-site.py

Modified: incubator/lcf/site/update-site.py
URL: http://svn.apache.org/viewvc/incubator/lcf/site/update-site.py?rev=1341840&r1=1341839&r2=1341840&view=diff
==============================================================================
--- incubator/lcf/site/update-site.py (original)
+++ incubator/lcf/site/update-site.py Wed May 23 11:38:12 2012
@@ -19,6 +19,7 @@ def site_merge(source_dir, target_dir):
     """
     # First, handle deletes.  Go through the target tree and find everything that doesn't
     # exist in the source...
+    print >> sys.stderr, "Removing obsolete directories and files..."
     deleted_dirs = { }
     for root, dirs, files in os.walk(target_dir):
         # Remove target_dir prefix from root
@@ -50,6 +51,7 @@ def site_merge(source_dir, target_dir):
 
     # Now, we do the same thing for the source tree.  We will add the missing directories
and
     # copy and add the files.
+    print >> sys.stderr, "Adding and updating new directories and files..."
     for root, dirs, files in os.walk(source_dir):
         relative_root = root[len(source_dir):]
         if len(relative_root) > 0 and (relative_root[0] == "/" or relative_root[0] ==
"\\"):
@@ -88,7 +90,8 @@ if __name__ == '__main__':
 
     site_merge(source_dir, target_dir)
     
-    #svn_command([ "commit", target_dir])
+    print >> sys.stderr, "Committing changes..."
+    svn_command([ "commit", target_dir])
     
     print >> sys.stderr, "Site updated!"
     
\ No newline at end of file



Mime
View raw message