Exemple #1
0
 def last_patch_date(self):
     dir = self._checkout_dir()
     s = self.read_pipe("cd %(dir)s && LANG= svn log --limit=1 --xml" % locals())
     #        m = re.search  ('Last Changed Date: (.*) \(', s)
     m = re.search("<date>(.*)\.[0-9]{6}Z</date>", s)
     date = m.group(1)
     return tztime.parse(date, self.patch_xmldateformat)
Exemple #2
0
 def last_patch_date(self):
     branch = self.branch
     s = self.git_pipe("log --pretty=format:%ai -1 %(branch)s" % locals())
     return tztime.parse(s, self.patch_dateformat)
Exemple #3
0
 def get_diff_from_tag_base(self, name, repo):
     tags = self.tag_list(name)
     if tags:
         tags.sort()
         return repo.get_diff_from_date(tztime.parse(tags[-1]))
     return None