Changeset 1880 for trunk/scripts


Ignore:
Timestamp:
Dec 24, 2008, 5:46:15 PM (16 years ago)
Author:
broder
Message:

Add code to parse the grafts file.

File:
1 edited

Legend:

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

    r1876 r1880  
    4040        clonePackage(base, pkg.strip())
    4141
     42def mergeHistory(old_pkg, new_pkg, n):
     43    pass
     44
     45def mergeHistories():
     46    for line in open('grafts'):
     47        line = line.strip()
     48        if line[0] == '#' or line == '':
     49            continue
     50       
     51        old_pkg, new_pkg, n = line.split()
     52        mergeHistory(old_pkg, new_pkg, int(n))
     53
    4254if __name__ == '__main__':
    4355    try:
     
    4759   
    4860    cloneAllPackages(base)
     61    mergeHistories()
Note: See TracChangeset for help on using the changeset viewer.