Created
August 30, 2016 12:51
-
-
Save invisiblek/417ea7376df187e17053444f4353d669 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tools/repopick.py b/tools/repopick.py | |
index 6e40f38..2b436ef 100755 | |
--- a/tools/repopick.py | |
+++ b/tools/repopick.py | |
@@ -210,7 +210,7 @@ if __name__ == '__main__': | |
xml_root = ElementTree.fromstring(manifest) | |
projects = xml_root.findall('project') | |
remotes = xml_root.findall('remote') | |
- default_revision = xml_root.findall('default')[0].get('revision').split('/')[-1] | |
+ default_revision = xml_root.findall('default')[0].get('revision') | |
#dump project data into the a list of dicts with the following data: | |
#{project: {path, revision}} | |
@@ -228,6 +228,7 @@ if __name__ == '__main__': | |
if not name in project_name_to_data: | |
project_name_to_data[name] = {} | |
+ revision = revision.split('refs/heads/')[-1] | |
project_name_to_data[name][revision] = path | |
# get data on requested changes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment