Ejemplo n.º 1
0
 def get_diff_from_date(self, stamp):
     #        date = tztime.format (stamp, self.patch_dateformat)
     date = tztime.format(stamp, self.diff_xmldateformat)
     dir = self._checkout_dir()
     source = self.source
     branch = self.branch
     module = self.module
     root = self._root()
     return self.read_pipe('cd %(dir)s && TZ= LANG= svn diff -r "{%(date)s}"' % locals())
Ejemplo n.º 2
0
 def tag(self, name):
     source = self.source
     branch = self.branch
     module = self.module
     branchmodule = self.branchmodule
     revision = self.revision
     rev_opt = "-r %(revision)s " % locals()
     stamp = self.last_patch_date()
     tag = name + "-" + tztime.format(stamp, self.tag_dateformat)
     root = self._root()
     self.system(
         'svn cp -m "" %(rev_opt)s %(source)s/%(branch)s/%(module)s/%(branchmodule)s %(root)s/tags/%(tag)s'
         "" % locals()
     )
     return tag
Ejemplo n.º 3
0
 def tag(self, name):
     stamp = self.last_patch_date()
     tag = name + "-" + tztime.format(stamp, self.tag_dateformat)
     branch = self.get_ref()
     self.git("tag %(tag)s %(branch)s" % locals())
     return tag
Ejemplo n.º 4
0
 def tag(self, name, repo):
     stamp = repo.last_patch_date()
     if stamp:
         date = tztime.format(stamp)
         self.db[name + "-" + date] = date