Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

gross hackery to support multiple patch sets

  • Loading branch information...
commit c8e1e19d053b08dbd1537999c9e7da317f17e554 1 parent 2154c94
@koush koush authored
Showing with 11 additions and 1 deletion.
  1. +11 −1 repopick.py
View
12 repopick.py
@@ -23,4 +23,14 @@
print project
number = data['number']
- os.system('cd %s ; CURRENT_HEAD=$(git rev-list HEAD --max-count 1) ; repo download . %s ; git merge $CURRENT_HEAD' % (project, number))
+ patch_count = 0
+ junk = number[len(number) - 2:]
+
+ while 0 != os.system('cd %s ; git fetch http://review.cyanogenmod.com/%s refs/changes/%s/%s/%s' % (project, data['project'], junk, number, patch_count + 1)):
+ patch_count = patch_count + 1
+
+ while 0 == os.system('cd %s ; git fetch http://review.cyanogenmod.com/%s refs/changes/%s/%s/%s' % (project, data['project'], junk, number, patch_count + 1)):
+ patch_count = patch_count + 1
+
+ os.system('cd %s ; git fetch http://review.cyanogenmod.com/%s refs/changes/%s/%s/%s' % (project, data['project'], junk, number, patch_count))
+ os.system('cd %s ; git merge FETCH_HEAD' % project)
Please sign in to comment.
Something went wrong with that request. Please try again.