# HG changeset patch # User Philippe Pepiot <philippe.pepiot@logilab.fr> # Date 1526570216 -7200 # Thu May 17 17:16:56 2018 +0200 # Node ID dbf6c2ca5ed8d55f176e070bd953571d9f6d8cd1 # Parent 573bbf4a949d9619d663318f8cbaedb6b75f56fd Use 'tip' instead of 'default' as revision variant This apply to files, archive and exchange benchmarks. Some reference repositories doesn't have a 'default' revision, or it relate to very old changesets that are not stripped by prepare_repos.py, so exchange benchmarks might be irrelevant. diff --git a/benchmarks/basic_commands.py b/benchmarks/basic_commands.py --- a/benchmarks/basic_commands.py +++ b/benchmarks/basic_commands.py @@ -127,7 +127,7 @@ self.hg("manifest", "--all") def time_files(self, *args, **kwargs): - self.hg('files', '-r', 'default') + self.hg('files', '-r', 'tip') class ArchiveTimeTestSuite(BaseTestSuite): @@ -158,7 +158,7 @@ # so use an unique output name self.hg('archive', '--type', archive_type, - '--rev', 'default', + '--rev', 'tip', self.output) @@ -239,7 +239,7 @@ params = BaseTestSuite.params + [ ['local', 'ssh', 'http'], get_strip_variants(), - [None, 'default']] + [None, 'tip']] timeout = 1800 def _remote_path_cmd(self, path): @@ -389,7 +389,7 @@ #class CloneTimeSuite(BaseExchangeTimeSuite): # # skip other repos since they are too big -# params = [['mercurial-2017'], ['local', 'ssh', 'http'], ['same'], [None, 'default']] +# params = [['mercurial-2017'], ['local', 'ssh', 'http'], ['same'], [None, 'tip']] # # timeout = 300 #