diff options
author | Dan Pasanen <invisiblek@cyanogenmod.org> | 2016-08-31 16:30:19 +0200 |
---|---|---|
committer | Adrian DC <radian.dc@gmail.com> | 2016-12-04 12:04:36 +0100 |
commit | b7831759763be0c30d1762f63db0010225957bca (patch) | |
tree | 1cf03f1fcda3d9b53dda25d0e5f074ba5d6148d8 | |
parent | e5be2a0b233ff0482ba36894de5da57b663dc683 (diff) | |
download | build-b7831759763be0c30d1762f63db0010225957bca.tar.gz build-b7831759763be0c30d1762f63db0010225957bca.tar.bz2 build-b7831759763be0c30d1762f63db0010225957bca.zip |
repopick: handle revisions with slashes
RM-290
Change-Id: I6f7891a52fb1538e88f5a68dd28ef1c603ee7067
-rwxr-xr-x | tools/repopick.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/repopick.py b/tools/repopick.py index 6e40f3849..2b436ef9b 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 |