Exemple #1
0
 def to_sxml(self):
     return (call_with_info(lambda rev:
                                [sxml.branch(repo=self.repository.name,
                                             module=self.module,
                                             revision=rev)],
                            self.srcdir, 'last changed rev')
             or [sxml.branch(repo=self.repository.name,
                             module=self.module)])
Exemple #2
0
 def to_sxml(self):
     return ([sxml.branch(module=self.module,
                          repo=self.repository.name,
                          version=self.version,
                          size=str(self.source_size),
                          hash=self.source_hash)]
             + [[sxml.patch(file=patch, strip=str(strip))]
                for patch, strip in self.patches])
Exemple #3
0
 def to_sxml(self):
     attrs = {}
     if self.revspec:
         attrs = self.revspec()[0]
     return [sxml.branch(repo=self.repository.name,
                         module=self.module,
                         revid=self.tree_id(),
                         **attrs)]
Exemple #4
0
 def to_sxml(self):
     return ([
         sxml.branch(module=self.module,
                     repo=self.repository.name,
                     version=self.version,
                     size=str(self.source_size),
                     hash=self.source_hash)
     ] + [[sxml.patch(file=patch, strip=str(strip))]
          for patch, strip in self.patches])
 def to_sxml(self):
     attrs = {}
     if self.revspec:
         attrs = self.revspec()[0]
     return [
         sxml.branch(repo=self.repository.name,
                     module=self.module,
                     revid=self.tree_id(),
                     **attrs)
     ]
Exemple #6
0
 def to_sxml(self):
     attrs = {}
     if self.branch:
         attrs['revision'] = self.branch
     if self.checkoutdir:
         attrs['checkoutdir'] = self.checkoutdir
     if self.subdir:
         attrs['subdir'] = self.subdir
     return [sxml.branch(repo=self.repository.name,
                         module=self.module,
                         tag=self.tree_id(),
                         **attrs)]
Exemple #7
0
 def to_sxml(self):
     attrs = {}
     if self.branch:
         attrs['revision'] = self.branch
     if self.checkoutdir:
         attrs['checkoutdir'] = self.checkoutdir
     if self.subdir:
         attrs['subdir'] = self.subdir
     return [sxml.branch(repo=self.repository.name,
                         module=self.module,
                         tag=self.tree_id(),
                         **attrs)]
Exemple #8
0
 def to_sxml(self):
     return ([sxml.branch(module=self.module,
                          repo=self.repository,
                          version=self.version)])
Exemple #9
0
 def to_sxml(self):
     # FIXME: fix the current revision
     return [sxml.branch(repo=self.repository.name, module=self.module)]
 def to_sxml(self):
     return ([sxml.branch(module=self.module,
                          repo=self.repository,
                          version=self.version)])
Exemple #11
0
 def to_sxml(self):
     # FIXME: fix the current revision
     return [sxml.branch(repo=self.repository.name,
                         module=self.module)]
Exemple #12
0
 def to_sxml(self):
     return ([sxml.branch(repo=self.repository.name, version=self.version)])