Adrian Schröter
6e55d7df19
- add new 'versionformat' option to determine how version is extracted via git show --pretty=... (and similar for svn / hg / bzr) - support caching of cloned repositories to speed up fetch from upstream - use mktemp -u because git/hg refuse to clone into an empty directory on SLES11 OBS-URL: https://build.opensuse.org/request/show/105386 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Tools/obs-service-tar_scm?expand=0&rev=33
18 lines
412 B
Python
18 lines
412 B
Python
#!/usr/bin/python
|
|
|
|
from githgtests import GitHgTests
|
|
from hgfixtures import HgFixtures
|
|
from utils import run_hg
|
|
|
|
class HgTests(GitHgTests):
|
|
scm = 'hg'
|
|
initial_clone_command = 'hg clone'
|
|
update_cache_command = 'hg pull'
|
|
fixtures_class = HgFixtures
|
|
|
|
abbrev_hash_format = '{node|short}'
|
|
timestamp_format = '{date}'
|
|
|
|
def default_version(self):
|
|
return self.rev(2)
|