本文整理汇总了Python中vcstools.bzr.BzrClient.get_log方法的典型用法代码示例。如果您正苦于以下问题:Python BzrClient.get_log方法的具体用法?Python BzrClient.get_log怎么用?Python BzrClient.get_log使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类vcstools.bzr.BzrClient
的用法示例。
在下文中一共展示了BzrClient.get_log方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_get_log_defaults
# 需要导入模块: from vcstools.bzr import BzrClient [as 别名]
# 或者: from vcstools.bzr.BzrClient import get_log [as 别名]
def test_get_log_defaults(self):
client = BzrClient(self.local_path)
client.checkout(self.remote_path)
log = client.get_log(limit=1)[0]
affected = client.get_affected_files(log['id'])
self.assertEqual(sorted(['deleted-fs.txt', 'deleted.txt']),
sorted(affected))
示例2: test_get_log_defaults
# 需要导入模块: from vcstools.bzr import BzrClient [as 别名]
# 或者: from vcstools.bzr.BzrClient import get_log [as 别名]
def test_get_log_defaults(self):
client = BzrClient(self.local_path)
client.checkout(self.remote_path)
log = client.get_log()
self.assertEquals(3, len(log))
self.assertEquals('modified', log[0]['message'])
for key in ['id', 'author', 'email', 'date', 'message']:
self.assertTrue(log[0][key] is not None, key)
示例3: test_get_log_path
# 需要导入模块: from vcstools.bzr import BzrClient [as 别名]
# 或者: from vcstools.bzr.BzrClient import get_log [as 别名]
def test_get_log_path(self):
client = BzrClient(self.local_path)
client.checkout(self.remote_path)
log = client.get_log(relpath='fixed.txt')
self.assertEquals('initial', log[0]['message'])
示例4: test_get_log_limit
# 需要导入模块: from vcstools.bzr import BzrClient [as 别名]
# 或者: from vcstools.bzr.BzrClient import get_log [as 别名]
def test_get_log_limit(self):
client = BzrClient(self.local_path)
client.checkout(self.remote_path)
log = client.get_log(limit=1)
self.assertEquals(1, len(log))
self.assertEquals('modified', log[0]['message'])