raise an ValueError with an argument string "Could not find common ancestor of %s", where '%s' is replaced with migration_names.
raise ValueError ( "Could not find common ancestor of %s" % migration_names )