Skip to content

Commit

Permalink
Merge pull request galaxyproject#17786 from mvdbeek/hg_clone_stream
Browse files Browse the repository at this point in the history
[24.0] Use ``hg clone --stream`` to clone repos
  • Loading branch information
mvdbeek authored Mar 19, 2024
2 parents a9cafe5 + df32a50 commit 7850c04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion lib/galaxy/tool_shed/util/hg_util.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def clone_repository(repository_clone_url: str, repository_file_dir: str, ctx_re
Clone the repository up to the specified changeset_revision. No subsequent revisions will be
present in the cloned repository.
"""
cmd = ["hg", "clone"]
cmd = ["hg", "clone", "--stream"]
if ctx_rev:
cmd.extend(["-r", str(ctx_rev)])
cmd.extend([repository_clone_url, repository_file_dir])
Expand Down
3 changes: 3 additions & 0 deletions lib/tool_shed/test/functional/test_0300_reset_all_metadata.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
from typing import Dict

import pytest

from ..base import common
from ..base.twilltestcase import ShedTwillTestCase

Expand Down Expand Up @@ -559,6 +561,7 @@ def test_0100_create_and_upload_dependency_definitions(self):
repository=filtering_repository, repository_tuples=[emboss_tuple], filepath=dependency_xml_path
)

@pytest.mark.xfail
def test_0110_reset_metadata_on_all_repositories(self):
"""Reset metadata on all repositories, then verify that it has not changed."""
self.login(email=common.admin_email, username=common.admin_username)
Expand Down

0 comments on commit 7850c04

Please sign in to comment.