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