2012-02-15 17:34:15 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
2012-02-16 12:06:33 +01:00
|
|
|
from githgtests import GitHgTests
|
|
|
|
from hgfixtures import HgFixtures
|
2012-02-15 17:34:15 +01:00
|
|
|
from utils import run_hg
|
|
|
|
|
2012-02-16 12:06:33 +01:00
|
|
|
class HgTests(GitHgTests):
|
2012-02-15 17:34:15 +01:00
|
|
|
scm = 'hg'
|
|
|
|
initial_clone_command = 'hg clone'
|
|
|
|
update_cache_command = 'hg pull'
|
|
|
|
fixtures_class = HgFixtures
|
|
|
|
|
2012-02-16 12:06:33 +01:00
|
|
|
abbrev_hash_format = '{node|short}'
|
|
|
|
timestamp_format = '{date}'
|
|
|
|
|
2012-02-15 17:34:15 +01:00
|
|
|
def default_version(self):
|
|
|
|
return self.rev(2)
|