diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py index 21e8fb819e577f4e6f8540830b2bec53202ff614_YmVuY2htYXJrcy9iYXNpY19jb21tYW5kcy5weQ==..24828355e2bf884a723b9232c387826c7d8499f2_YmVuY2htYXJrcy9iYXNpY19jb21tYW5kcy5weQ== 100644 --- a/benchmarks/basic_commands.py +++ b/benchmarks/basic_commands.py @@ -453,8 +453,8 @@ # class CloneStreamTimeSuite(BaseExchangeMixin, BaseTestSuite): -# param_names = BaseTestSuite.param_names + ['repo_type'] -# params = BaseTestSuite.params + [['local', 'ssh', 'http']] +# param_names = BaseTestSuite.param_names + ['repo_type', 'update'] +# params = BaseTestSuite.params + [['local', 'ssh', 'http'], [False, True]] # timer = timeit.default_timer # # run 5 times or less than 15 minutes @@ -464,14 +464,15 @@ # sample_time = (15 * 60) / (repeat * 1.3) # timeout = 2700 -# def setup(self, *args, **kwargs): -# args = list(args) -# repo_name = args[self.param_names.index('repo')] -# repo_type = args.pop(-1) -# super(CloneStreamTimeSuite, self).setup(*args, **kwargs) -# self._cleanup_paths = [] -# self._setup_repo_type(repo_type) -# self.clone_path = os.path.join(REPOS_DIR, repo_name) +# def setup(self, *args, **kwargs): +# args = list(args) +# repo_name = args[self.param_names.index('repo')] +# self.update = args.pop(-1) +# repo_type = args.pop(-1) +# super(CloneStreamTimeSuite, self).setup(*args, **kwargs) +# self._cleanup_paths = [] +# self._setup_repo_type(repo_type) +# self.clone_path = os.path.join(REPOS_DIR, repo_name) # def teardown(self, *args, **kwargs): # self._teardown_repo_type() @@ -479,10 +480,12 @@ # shutil.rmtree(path, ignore_errors=True) # self._cleanup_paths = [] -# def time_clone_stream(self, *args, **kwargs): -# cmd = ['clone', '--stream'] -# tmp_clone_path = os.path.abspath(tempfile.mkdtemp(dir='.')) -# self._cleanup_paths.append(tmp_clone_path) -# cmd.extend(self._remote_path_cmd(self.clone_path)) -# cmd.append(tmp_clone_path) -# self.hg(*cmd) +# def time_clone_stream(self, *args, **kwargs): +# cmd = ['clone', '--stream'] +# tmp_clone_path = os.path.abspath(tempfile.mkdtemp(dir='.')) +# self._cleanup_paths.append(tmp_clone_path) +# cmd.extend(self._remote_path_cmd(self.clone_path)) +# cmd.append(tmp_clone_path) +# if not self.update: +# cmd.append('--noupdate') +# self.hg(*cmd)