217
215
def update_cache(cache, cache_filename, changed, sourcecode_directory, quiet):
218
216
"""Update the cache with the changed branches."""
220
221
for project, (branch_url, revision, optional) in changed.iteritems():
221
222
destination = os.path.join(sourcecode_directory, project)
222
223
branch = Branch.open(destination)
226
225
with open(cache_filename, 'wb') as cache_file:
227
226
json.dump(cache, cache_file, indent=4)
232
229
def update_branches(sourcecode_directory, update_branches,