sysadmin-bin r82 - trunk



Author: ovitters
Date: Mon Oct 27 22:42:10 2008
New Revision: 82
URL: http://svn.gnome.org/viewvc/sysadmin-bin?rev=82&view=rev

Log:
	* svn-migrate-repos: Set niceness and ensure hooks are copied.



Modified:
   trunk/ChangeLog
   trunk/svn-migrate-repos

Modified: trunk/svn-migrate-repos
==============================================================================
--- trunk/svn-migrate-repos	(original)
+++ trunk/svn-migrate-repos	Mon Oct 27 22:42:10 2008
@@ -3,6 +3,8 @@
 import sys, os, getopt, shutil, string, re, subprocess, glob
 import os.path
 
+os.nice(19)
+
 if __name__ == '__main__':
     orig, backup, tmp = sys.argv[1:]
     
@@ -21,6 +23,7 @@
 
         # Setup new repository
         subprocess.check_call(['svnadmin', 'create', tmpsvn])
+        subprocess.check_call(['find', '%s/hooks' % origsvn, '-type', 'f', '(', '-name', '*.tmpl', '-prune', '-o', '-exec', 'cp', '-p', '{}', '%s/hooks' % tmpsvn, ')'])
         subprocess.check_call(['chown', '-R', '--reference', origsvn, '--', tmpsvn])
         subprocess.check_call(['chmod', '-R', '--reference', origsvn, '--', tmpsvn])
         subprocess.check_call(['find', tmpsvn, '-type', 'f', '-exec', 'chmod', '-x', '{}', ';'])



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]