LUCENE-7265: Fix addVersion to cherry-pick downstream changes by using the change id

This commit is contained in:
anshum 2016-04-28 17:33:00 -07:00
parent 7bc50ec1ee
commit 54b873c2f9
2 changed files with 9 additions and 1 deletions

View File

@ -187,7 +187,10 @@ def read_config():
return c
def main():
c = read_config()
c = read_config()
if c.changeid:
cherry_pick_change(c.changeid)
print('\nAdding new version %s' % c.version)
update_changes('lucene/CHANGES.txt', c.version)

View File

@ -121,6 +121,11 @@ version_prop_re = re.compile('version\.base=(.*)')
def find_current_version():
return version_prop_re.search(open('lucene/version.properties').read()).group(1)
def cherry_pick_change(changeid):
print('\nCherry-picking downstream change %s...' % changeid, end='')
run('git cherry-pick %s' % changeid)
print('done')
if __name__ == '__main__':
print('This is only a support module, it cannot be run')
sys.exit(1)