Skip to content
Snippets Groups Projects
Commit 949ad633c026 authored by Philippe Pepiot's avatar Philippe Pepiot
Browse files

Use hg() in ArchiveTimeTestSuite, LogTimeTestSuite, UpdateTimeTestSuite and BundleTimeTestSuite

parent ca7eda686295
No related branches found
No related tags found
No related merge requests found
......@@ -109,7 +109,7 @@
def time_archive(self, repo, archive_type, *args, **kwargs):
# asv share the same temporary directory for all combinations
# so use an unique output name
return self._execute('archive', '-t', archive_type, '-r', 'default', self.output)
self.hg('archive', '-t', archive_type, '-r', 'default', self.output)
class LogTimeTestSuite(BaseNChangesetsTestSuite):
......@@ -119,7 +119,7 @@
timeout = 300
def time_log_history(self, repo, n):
self._execute("log", "-r", "-%d:" % n)
self.hg("log", "-r", "-%d:" % n)
class UpdateTimeTestSuite(BaseNChangesetsTestSuite):
......@@ -129,8 +129,8 @@
sample_time = 10
def time_up_tip(self, repo, n):
self._execute("up", "-r", "tip~%d" % n)
self._execute("up", "-r", "tip")
self.hg("up", "-r", "tip~%d" % n)
self.hg("up", "-r", "tip")
class BundleTimeTestSuite(BaseNChangesetsTestSuite):
......@@ -140,7 +140,7 @@
timeout = 500
def time_bundle(self, repo, n):
self._execute("bundle", "--base", ":(-%d)" % (n+1), "/tmp/bundle.bundle")
self.hg("bundle", "--base", ":(-%d)" % (n+1), "/tmp/bundle.bundle")
class HgWeb(object):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment