#NEWLINE# def pull_changes( db_project ) : #NEWLINE# #INDENT# '\n    Update the local files with changes from the VCS. Returns\n    whether any of the updated repos have changed since the last\n    sync, based on the revision numbers.\n    ' #NEWLINE# changed = False #NEWLINE# for repo in db_project . repositories . all ( ) : #NEWLINE# #INDENT# repo_revisions = repo . pull ( ) #NEWLINE# unsure_change = ( None in repo_revisions . values ( ) ) #NEWLINE# if ( unsure_change or ( repo_revisions != repo . last_synced_revisions ) ) : #NEWLINE# #INDENT# changed = True #NEWLINE# #UNINDENT# repo . last_synced_revisions = repo #NEWLINE# repo . save ( ) #NEWLINE# #UNINDENT# return changed