Changeset 1900
- Timestamp:
- Dec 25, 2008, 5:48:27 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate
r1899 r1900 30 30 cwd='%s.git' % pkg) 31 31 32 def clonePackage(base, pkg): 33 path = '%s/%s' % (base, pkg) 34 pkg = os.path.basename(pkg) 32 def clonePackage(base, repo_path): 33 pkg = os.path.basename(repo_path) 35 34 36 35 if not os.path.isdir('%s.git' % pkg): 37 36 if os.path.isdir(pkg): 38 37 shutil.rmtree(pkg) 38 39 args = [] 40 args.append('-Ttrunk/%s' % repo_path) 41 if repo_path.startswith('packages/'): 42 args.append('-tpackage_tags/%s' % pkg) 43 args.append(base) 44 args.append(pkg) 45 39 46 # Use --no-follow-parent because we're going to handle that with 40 47 # grafts. … … 43 50 '-Aauthors', 44 51 '-q', 45 '--no-metadata', 46 '%s' % path], 52 '--no-metadata'] + args, 47 53 stdout=subprocess.PIPE) 48 54 … … 171 177 base = sys.argv[1] 172 178 except: 173 base = 'svn://invirt.mit.edu /trunk'179 base = 'svn://invirt.mit.edu' 174 180 175 181 cloneAllPackages(base)
Note: See TracChangeset
for help on using the changeset viewer.