Advertisement
Guest User

svn_update_ext.py

a guest
Sep 7th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.52 KB | None | 0 0
  1. ##
  2. # @package SVN
  3. # @author Maciej Jaros
  4. # @copyright Public domain
  5. # @brief Updates a SVN repo under the cursor.
  6. # Use for repos with external files in root dir.
  7. # @param arg[1] Root directory (or any other) to be updated.
  8. #
  9.  
  10. import re
  11. import os,sys
  12.  
  13. #"""
  14. # check and set args
  15. if len(sys.argv)<1:
  16.     exit()
  17. strPath = sys.argv[1]
  18. #"""
  19. #strPath = r"c:\test-svn\some-root"
  20.  
  21. for f in os.listdir(strPath):
  22.     #print f
  23.     if f != ".svn":
  24.         f = os.path.join(strPath, f)
  25.         os.system("svn update "+f)
  26.        
  27. os.system("PAUSE")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement