示例#1
0
文件: test_mergeinfo.py 项目: 2lnx/v8
    def testCanDescribeCommitSingleLine(self):
        commits = self._get_commits()
        hash_of_first_commit = commits[0]

        result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit, True).splitlines()

        self.assertEqual(str(result[0]), str(hash_of_first_commit[0:7]) + " Initial commit")
示例#2
0
文件: test_mergeinfo.py 项目: 2lnx/v8
    def testCanDescribeCommit(self):
        commits = self._get_commits()
        hash_of_first_commit = commits[0]

        result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit).splitlines()

        self.assertEqual(result[0], "commit " + hash_of_first_commit)
示例#3
0
    def testCanDescribeCommit(self):
        commits = self._get_commits()
        hash_of_first_commit = commits[0]

        result = mergeinfo.describe_commit(self.base_dir,
                                           hash_of_first_commit).splitlines()

        self.assertEqual(result[0], 'commit ' + hash_of_first_commit)
示例#4
0
    def testCanDescribeCommitSingleLine(self):
        commits = self._get_commits()
        hash_of_first_commit = commits[0]

        result = mergeinfo.describe_commit(self.base_dir, hash_of_first_commit,
                                           True).splitlines()

        self.assertEqual(str(result[0]),
                         str(hash_of_first_commit[0:7]) + ' Initial commit')