Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ##
- # @package SVN
- # @author Maciej Jaros
- # @copyright Public domain
- # @brief Updates a SVN repo under the cursor.
- # Use for repos with external files in root dir.
- # @param arg[1] Root directory (or any other) to be updated.
- #
- import re
- import os,sys
- #"""
- # check and set args
- if len(sys.argv)<1:
- exit()
- strPath = sys.argv[1]
- #"""
- #strPath = r"c:\test-svn\some-root"
- for f in os.listdir(strPath):
- #print f
- if f != ".svn":
- f = os.path.join(strPath, f)
- os.system("svn update "+f)
- os.system("PAUSE")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement