Example #1
0
class SvnActivityChecker:

	def __init__(self, url):
		self.svn = SvnUtils(url)
		self.revision = self.svn.revision() - 2
		self.notifier = StdNotifier() 

	def check(self):
		cur_revision = self.svn.revision()
		if self.revision != cur_revision:		
			log = self.svn.log(self.revision + 1, cur_revision)
			self.revision = cur_revision
			logparser = SvnLogParser()
			log_entries = logparser.parse(log)
			
			for (user, comment) in log_entries:
				print user + ": " + comment
Example #2
0
	def __init__(self, url):
		self.svn = SvnUtils(url)
		self.revision = self.svn.revision() - 2
		self.notifier = StdNotifier()