Commit f84e4cbe authored by Michal Čihař's avatar Michal Čihař

Correctly export short revision from git

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b1ee95b1
......@@ -87,10 +87,19 @@ class VCSGitTest(RepoTestCase):
def check_valid_info(self, info):
self.assertTrue('summary' in info)
self.assertTrue(info['summary'] != '')
self.assertTrue('author' in info)
self.assertTrue(info['author'] != '')
self.assertTrue('authordate' in info)
self.assertTrue(info['authordate'] != '')
self.assertTrue('commit' in info)
self.assertTrue(info['commit'] != '')
self.assertTrue('commitdate' in info)
self.assertTrue(info['commitdate'] != '')
self.assertTrue('revision' in info)
self.assertTrue(info['revision'] != '')
self.assertTrue('shortrevision' in info)
self.assertTrue(info['shortrevision'] != '')
def test_revision_info(self):
# Latest commit
......
......@@ -743,7 +743,7 @@ class HgRepository(Repository):
commit_email: {email(author)}
commit: {author}
commitdate: {rfc822date(date)}
commit: {short(node)}
shortrevision: {short(node)}
message:
{desc}
'''
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment