commit/galaxy-central: greg: Fix for generating metadata on the repository tip.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/3d0db17ca1fa/ changeset: 3d0db17ca1fa user: greg date: 2011-11-21 18:09:25 summary: Fix for generating metadata on the repository tip. affected #: 1 file diff -r 058c507d05fd41694261f9f679b7cccafe295faf -r 3d0db17ca1fa86aaeff546c1a3cb375f15148c72 lib/galaxy/webapps/community/controllers/repository.py --- a/lib/galaxy/webapps/community/controllers/repository.py +++ b/lib/galaxy/webapps/community/controllers/repository.py @@ -1631,7 +1631,10 @@ for changeset in repo.changelog: current_changeset_revision = str( repo.changectx( changeset ) ) ctx = get_changectx_for_changeset( trans, repo, current_changeset_revision ) - current_metadata_dict, invalid_files = generate_metadata_for_changeset_revision( trans, id, ctx, current_changeset_revision, repo_dir ) + if current_changeset_revision == repository.tip: + current_metadata_dict, invalid_files = generate_metadata_for_repository_tip( trans, id, ctx, current_changeset_revision, repo_dir ) + else: + current_metadata_dict, invalid_files = generate_metadata_for_changeset_revision( trans, id, ctx, current_changeset_revision, repo_dir ) if current_metadata_dict: if ancestor_changeset_revision: # Compare metadata from ancestor and current. The value of comparsion will be one of: Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
Bitbucket