1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/6d551feac6c0/ changeset: 6d551feac6c0 user: greg date: 2012-04-23 20:50:27 summary: More fixes for retrieving updates for an installed tool shed repository. affected #: 1 file diff -r dd44d4e5219a279400a56825b2ff6e2e81683c98 -r 6d551feac6c0780979a1ce551a5430990473d864 lib/galaxy/webapps/community/controllers/repository.py --- a/lib/galaxy/webapps/community/controllers/repository.py +++ b/lib/galaxy/webapps/community/controllers/repository.py @@ -876,6 +876,7 @@ repository = get_repository_by_name_and_owner( trans, name, owner ) repo_dir = repository.repo_path repo = hg.repository( get_configured_ui(), repo_dir ) + latest_ctx = get_changectx_for_changeset( repo, changeset_revision ) from_update_manager = webapp == 'update_manager' if from_update_manager: update = 'true' @@ -889,6 +890,7 @@ # If changeset_revision is the repository tip, we know there are no additional updates for the tools. if from_update_manager: return no_update + # Return the same value for changeset_revision and latest_changeset_revision. url += repository.tip else: repository_metadata = get_repository_metadata_by_changeset_revision( trans, @@ -902,9 +904,6 @@ else: # Return the same value for changeset_revision and latest_changeset_revision. url += changeset_revision - # Get the ctx_rev for the changeset_revision. - latest_ctx = get_changectx_for_changeset( repo, changeset_revision ) - url += '&latest_ctx_rev=%s' % str( latest_ctx.rev() ) else: # The changeset_revision column in the repository_metadata table has been # updated with a new changeset_revision value since the repository was cloned. @@ -965,7 +964,6 @@ url += repository_metadata.changeset_revision # Get the ctx_rev for the discovered changeset_revision. latest_ctx = get_changectx_for_changeset( repo, repository_metadata.changeset_revision ) - url += '&latest_ctx_rev=%s' % str( latest_ctx.rev() ) found = True break if not found: @@ -979,6 +977,7 @@ if from_update_manager: return no_update url += changeset_revision + url += '&latest_ctx_rev=%s' % str( latest_ctx.rev() ) return trans.response.send_redirect( url ) @web.expose def browse_repositories( self, trans, **kwd ): 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.