RevHistoryLocation = ' "C:/Temp/temp.xml"' vaultFolder_full = " $/" + vaultFolder getRevHistoryCommand = getRevHistory + " -repository " + vaultRepo + beginVersion + vaultFolder_full + " > " + RevHistoryLocation color_print(getRevHistoryCommand, color='blue') os.system("cd /D " + SourceGearLocation + "&& " + getRevHistoryCommand) #os.system("cd /D"+ vault2git_script_location) XmlParser.init() comments = XmlParser.CommentA() version = XmlParser.VersionA() txid = XmlParser.TxidA() objverid = XmlParser.ObjveridA() date = XmlParser.DateA() user = XmlParser.UserA() gitDestination_full = " C:/Temp/" + gitDestination # if the script fails part way through change startVersion to match the last know vault version to be committed to git. # vault version are recorded at the beginning of the git commit messages startVersion = 0 loopLength = len(version) print('\n\nThere are ', loopLength, ' commits to migrate\n\n') for x in range(startVersion, loopLength, 1): commit_version = str(version[x]) commit_user = str(user[x]) commit_message = str(comments[x]) commit_txid = str(txid[x])