Changeset 1883
- Timestamp:
- Dec 24, 2008, 5:46:16 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/scripts/git-migration/git-migrate
r1882 r1883 82 82 83 83 def mergeHistories(): 84 grafts = [] 84 85 for line in open('grafts'): 85 86 line = line.strip() … … 87 88 continue 88 89 89 old_pkg, new_pkg, n = line.split() 90 mergeHistory(old_pkg, new_pkg, int(n)) 90 grafts.append(line.split()) 91 92 for graft in grafts: 93 mergeHistory(*graft) 94 95 for line in open('package-list'): 96 line = line.strip() 97 subprocess.check_call(['git', 'filter-branch', 98 '--', 99 '--all'], 100 cwd='%s.git' % line) 101 102 for graft in grafts: 103 shutil.rmtree('%s.git' % graft[0]) 91 104 92 105 if __name__ == '__main__':
Note: See TracChangeset
for help on using the changeset viewer.