Ignore:
Timestamp:
Dec 25, 2008, 5:48:27 AM (16 years ago)
Author:
broder
Message:

Start pulling the tags. Of course...right now they'll get lost as soon
as repos start getting pushed around.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/scripts/git-migration/git-migrate

    r1899 r1900  
    3030                          cwd='%s.git' % pkg)
    3131
    32 def clonePackage(base, pkg):
    33     path = '%s/%s' % (base, pkg)
    34     pkg = os.path.basename(pkg)
     32def clonePackage(base, repo_path):
     33    pkg = os.path.basename(repo_path)
    3534   
    3635    if not os.path.isdir('%s.git' % pkg):
    3736        if os.path.isdir(pkg):
    3837            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       
    3946        # Use --no-follow-parent because we're going to handle that with
    4047        # grafts.
     
    4350                               '-Aauthors',
    4451                               '-q',
    45                                '--no-metadata',
    46                                '%s' % path],
     52                               '--no-metadata'] + args,
    4753                              stdout=subprocess.PIPE)
    4854       
     
    171177        base = sys.argv[1]
    172178    except:
    173         base = 'svn://invirt.mit.edu/trunk'
     179        base = 'svn://invirt.mit.edu'
    174180   
    175181    cloneAllPackages(base)
Note: See TracChangeset for help on using the changeset viewer.