lucene-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ans...@apache.org
Subject lucene-solr:master: LUCENE-7265: Fix addVersion to cherry-pick downstream changes by using the change id
Date Fri, 29 Apr 2016 00:34:02 GMT
Repository: lucene-solr
Updated Branches:
  refs/heads/master 7bc50ec1e -> 54b873c2f


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/54b873c2
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/54b873c2
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/54b873c2

Branch: refs/heads/master
Commit: 54b873c2f9b401687c18010aee31c35bcab9660e
Parents: 7bc50ec
Author: anshum <anshum@apache.org>
Authored: Thu Apr 28 17:33:00 2016 -0700
Committer: anshum <anshum@apache.org>
Committed: Thu Apr 28 17:33:49 2016 -0700

----------------------------------------------------------------------
 dev-tools/scripts/addVersion.py | 5 ++++-
 dev-tools/scripts/scriptutil.py | 5 +++++
 2 files changed, 9 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/54b873c2/dev-tools/scripts/addVersion.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/addVersion.py b/dev-tools/scripts/addVersion.py
index 414e4a1..112da45 100644
--- a/dev-tools/scripts/addVersion.py
+++ b/dev-tools/scripts/addVersion.py
@@ -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)

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/54b873c2/dev-tools/scripts/scriptutil.py
----------------------------------------------------------------------
diff --git a/dev-tools/scripts/scriptutil.py b/dev-tools/scripts/scriptutil.py
index 216bde4..f10bf97 100644
--- a/dev-tools/scripts/scriptutil.py
+++ b/dev-tools/scripts/scriptutil.py
@@ -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)


Mime
View raw message