# Grabing the Revision History to use as a guide for cloning each commit credentials = " -host " + vaultHost + " -user " + vaultUser + " -password " + vaultPasswd getRevHistory = "vault VERSIONHISTORY -rowlimit 0 " + credentials beginVersion = " -beginversion 0 " 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')