- Timestamp:
- Dec 24, 2008, 6:20:39 PM (16 years ago)
- Location:
- trunk/scripts/git-migration
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate
r1883 r1884 82 82 83 83 def mergeHistories(): 84 grafts = []85 for line in open(' grafts'):84 merges = [] 85 for line in open('merges'): 86 86 line = line.strip() 87 87 if line[0] == '#' or line == '': 88 88 continue 89 89 90 grafts.append(line.split())90 merges.append(line.split()) 91 91 92 for graft in grafts:93 mergeHistory(* graft)92 for merge in merges: 93 mergeHistory(*merge) 94 94 95 95 for line in open('package-list'): … … 100 100 cwd='%s.git' % line) 101 101 102 for graft in grafts:103 shutil.rmtree('%s.git' % graft[0])102 for merge in merges: 103 shutil.rmtree('%s.git' % merge[0]) 104 104 105 105 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.