Support for importing from multi-repo google code project

This commit is contained in:
Ciaran Gultnieks 2012-08-10 12:42:20 +01:00
parent f49a85b4fb
commit 0ddfa22caa

View file

@ -38,6 +38,8 @@ def main():
help="Project URL to import from.") help="Project URL to import from.")
parser.add_option("-s", "--subdir", default=None, parser.add_option("-s", "--subdir", default=None,
help="Path to main android project subdirectory, if not in root.") help="Path to main android project subdirectory, if not in root.")
parser.add_option("-r", "--repo", default=None,
help="Allows a different repo to be specified for a multi-repo google code project")
(options, args) = parser.parse_args() (options, args) = parser.parse_args()
if not options.url: if not options.url:
@ -89,6 +91,8 @@ def main():
url += '/'; url += '/';
projecttype = 'googlecode' projecttype = 'googlecode'
sourcecode = url + 'source/checkout' sourcecode = url + 'source/checkout'
if options.repo:
sourcecode += "?repo=" + options.repo
issuetracker = url + 'issues/list' issuetracker = url + 'issues/list'
# Figure out the repo type and adddress... # Figure out the repo type and adddress...